From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,b69d377feb5a8a2 X-Google-Attributes: gid10952f,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public From: Scott.CollinsNO_SPAM@mindless.com (Scott Collins) Subject: Re: Different UNIX pro's and con's. Date: 1998/09/19 Message-ID: #1/1 X-Deja-AN: 392615517 References: <35F71814.1E0B911C@iakom.com> <35FB108D.F8FEFEBE@home.com> <6ti5t2$lbr$1@Venus.mcs.net> <35FDE10D.3380C3C1@home.com> <6tkqni$m41@web.nmti.com> <36019311.0@news.thefree.net> <6tsafu$4cr$1@camco.celestial.com> <360253C8.BB71898@home.com> <3602837C.5A77@lmt.ens-cachan.fr> <3602C849.C70612C6@llnl.gov> <3602E82F.C8638268@llnl.gov> Organization: Galaxy Star - Northeastern Oklahoma Internet Reply-To: scott.collinsNO_SPAM@mindless.com Newsgroups: comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec,comp.security.unix >> >> Doing this could crash many different programs that might be using or need to >> use /tmp. I don't think there is any one best answer. Depending on the purpose >> of the system and what type of users are using it, you may need one solution >> over another. If it is a database server with very few users except DBA's and >> SA's, you may well be fine with the "find" solution. A muli-user or development >> environment may require a totally different approach. >> >> Bottom line, there is no perfect solution. Only the best solution for a given >> environment. >> > >I tend to agree with Scott - there are many 24X7 shops where even a >short interruption in the access to /tmp could cause problems. One idea >I have is to write a custom C program and wrap the relevant sections >(identification of file to delete to actual rm the file) with a call >to set the job to realtime priority (AFAIK uninterruptable), then back >to normal priority. Any comments? I like this idea. The portability of realtime extensions could prove problematic, but I think it is an interesting approach as any type of scripting or cron job spawned from a shell has potential pitfalls no matter how much checking is done within a script. If /tmp needs a lot of attention, a C program is probably the best bet. -------------------------------------- Scott Collins UNIX/SAP Systems Manager scott.collinsNO_SPAM@mindless.com (remove "NO_SPAM" to contact by mail) --------------------------------------