Markus Jansen
2015-05-12 15:32:04 UTC
Hi,
on Linux, very often tmpwatch(8) is employed to clean /tmp and /var/tmp periodically (on other systems, e.g. on Solaris 10,
this is not the default) via cron.daily. Whether atime, mtime, or ctime, or a combination of these stamps are used, is a matter of the local configuration.
Unfortunately, this results not in the removal of complete PAR deployment trees in one of these directories, but to single files.
As PAR restitutes the correct mtime after unpacking for most files, functionality may "slowly deteriorate", worst case depending
on the mtime during packing the PAR executable.
While long-term servers could apply quite some countermeasures (such as using a different location, or periodically "refreshing" their PAR cache),
I fail to see an easy solution for "ordinary" client programs other than setting PAR_CLEAN, thereby slowing startup down.
IMHO the cleanest solution would be to provide tmpwatch with a sort of "wipe all or nothing of a tree" marks.
A possible PAR approach would be to unpack all files without setting the mtime, except for a special "canary bird" file, which would be artificially aged
by a little more than a day. Removing the "canary bird" would then invalidate the cache.
Any opinions are highly appreciated.
Best regards,
Markus
[Ericsson]<http://www.ericsson.com/>
MARKUS JANSEN Dipl.-Ing.
Aachen Engineering Hub ClearCase/Git Expert
ITTE Hub Services / CM Automation Components
EDD/IFT/E
Ericsson
Ericsson Allee 1
52134, Herzogenrath, Germany
Phone +49 2407 575 5157
Mobile +49 172 2742003
Exchange +49 2407 575 0
Fax +49 2407 575 14721
***@ericsson.com
www.ericsson.com
Legal entity: Ericsson GmbH, registered office in Düsseldorf, Germany, Trade Register: Amtsgericht Düsseldorf (HRB 33012). Managing Directors: Stefan Koetz (Chairman), Cecilia Wachtmeister, Bernd Mellinghaus. Supervisory Board: Valter D'Avino (Chairman). This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer<http://www.ericsson.com/email_disclaimer>
on Linux, very often tmpwatch(8) is employed to clean /tmp and /var/tmp periodically (on other systems, e.g. on Solaris 10,
this is not the default) via cron.daily. Whether atime, mtime, or ctime, or a combination of these stamps are used, is a matter of the local configuration.
Unfortunately, this results not in the removal of complete PAR deployment trees in one of these directories, but to single files.
As PAR restitutes the correct mtime after unpacking for most files, functionality may "slowly deteriorate", worst case depending
on the mtime during packing the PAR executable.
While long-term servers could apply quite some countermeasures (such as using a different location, or periodically "refreshing" their PAR cache),
I fail to see an easy solution for "ordinary" client programs other than setting PAR_CLEAN, thereby slowing startup down.
IMHO the cleanest solution would be to provide tmpwatch with a sort of "wipe all or nothing of a tree" marks.
A possible PAR approach would be to unpack all files without setting the mtime, except for a special "canary bird" file, which would be artificially aged
by a little more than a day. Removing the "canary bird" would then invalidate the cache.
Any opinions are highly appreciated.
Best regards,
Markus
[Ericsson]<http://www.ericsson.com/>
MARKUS JANSEN Dipl.-Ing.
Aachen Engineering Hub ClearCase/Git Expert
ITTE Hub Services / CM Automation Components
EDD/IFT/E
Ericsson
Ericsson Allee 1
52134, Herzogenrath, Germany
Phone +49 2407 575 5157
Mobile +49 172 2742003
Exchange +49 2407 575 0
Fax +49 2407 575 14721
***@ericsson.com
www.ericsson.com
Legal entity: Ericsson GmbH, registered office in Düsseldorf, Germany, Trade Register: Amtsgericht Düsseldorf (HRB 33012). Managing Directors: Stefan Koetz (Chairman), Cecilia Wachtmeister, Bernd Mellinghaus. Supervisory Board: Valter D'Avino (Chairman). This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer<http://www.ericsson.com/email_disclaimer>