Re: Processes with open handles to unlinked files



I commented:
Some programs will deliberately create temporary files and unlink them
immediately, to ensure that if anything is killed or crashes, the
[temporary file is deleted].

Tony Lawrence replied:
Yes, of course: I do that myself. But what I meant was what process is
so sloppy that it matters?

I might have a couple of files hanging about for a few minutes, but not
enough that I'm concerned about disk space (certainly not nowadays
anyway!). And those processes WILL end, and the space will be
reclaimed - this sounds like he's got some runaway rogue..

I said:
"Temporary" files might not be *that* temporary, or that small,
especially if the temporary files contain per-session database tables
and the program is querying a large (separate and persistent) database.

Tony objected:
If that were the case, then obviously you wouldn't be looking to kill
off processes ordinarily, now would you?

I think you're assuming either a single-user machine here, or one where
the users co-operate on the use of the machine. It's quite possible that
the only way the administrator normally knows what the machine is
running is by using the provided tools.

If the process is doing legitimate work, why on earth would he be
looking to kill it? And if not, then why is it still running? Why
hasn't it finished on its own?

No, something is very, very wrong here. Do *you* have systems where
you have to ordinarily and regularly use lsof to find unlinked open
files? Where that's an accepted and ordinary part of administering
the system?

OK -- say that I've got a system where a number of users are running
long-running reports against a database. One of them may have been
misprogrammed, or the user might have (by mistake) chosen options that
require a huge amount of run-time and disk space. Because these reports
*are* long-running anyway, the users have got used to leaving them to
run and continue working in other sessions. These users are
non-technical, and may not notice that their program is taking a lot
longer to run than they expect. They might not know how long it should
take -- they may have intended to run it with unusual parameters.

Now the filesystem where temporary unlinked files is held is becoming
full. Which of those reports are responsible?

(When I first came to one job, I was asked I could make a particular
report run any faster. I asked "how long does it take", and was told
"three days". Rewriting the application and retuning the box got that
down to fifteen minutes).

Hope this helps,

James.

--
E-mail: james@ | You will stop at nothing to reach your objective, but
aprilcottage.co.uk | only because your brakes are defective.
.



Relevant Pages

  • Re: SYSTEMS ENGINEER/ VAX-VMS/ CAREER POSITION
    ... System Administration and database admin from NIIT, ... salary details and generate reports and enclosures,and calculates ... Responsibilities: ... Write New programs from user requirements, Programming Changes ...
    (comp.os.vms)
  • Re: Advice needed for a growing Access 2000 project
    ... However, it turned out that quite a few of those were "leftovers" from previous releases, no longer accessible from anywhere but the database window, and, thus, no longer used. ... But that certainly isn't the _norm_ -- without any 'heroic' measures, there are routine reports of split Access DBs ... Finally, in my opinion, for "Windows apps", that is, individual-user applications, modest-sized multiuser applications, and client-server applications of any size, Dot Net does NOT "help along" any of these issues. ... The post I reference was in reference its self to the MS Access Help file under "Microsoft Access database general specifications" ...
    (comp.databases.ms-access)
  • Re: running report cause fatal error- on Win98, not XP
    ... It is actually not that difficult to crash JET with complex queries, ... another query. ... only the more complex reports cause the crash- the others do ... Then compact the database: ...
    (microsoft.public.access.reports)
  • Re: running report cause fatal error- on Win98, not XP
    ... another query. ... only the more complex reports cause the crash- the others do ... Then compact the database: ... Still in the code window, choose Compile from the Debug menu. ...
    (microsoft.public.access.reports)
  • Re: SBS Monitoring Issues
    ... That kinda makes me wonder if either the master database is corrupt.. ... "Fred Orcutt" wrote in message ... >>Microsoft Small Business Server Support ... Reports are transmitted as configured but the content ...
    (microsoft.public.windows.server.sbs)