* [9fans] closeproc slow
@ 2006-07-23 10:06 erik quanstrom
2006-07-23 16:34 ` Russ Cox
0 siblings, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2006-07-23 10:06 UTC (permalink / raw)
To: 9fans
i killed off some webfs processes that were lingering. it took
the kernel about 5 second per process to reap them on an otherwise-
unloaded system:
; while(sleep 5)
ps|grep closeproc|wc
36 252 2304
35 245 2240
34 238 2176
33 231 2112
[...]
either all of these processes are in state Queueing or all but one
are in state Queueing and the last is in state Wakeme.
so the (probablly useless) question is why does this take so long?
- erik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] closeproc slow
2006-07-23 16:34 ` Russ Cox
@ 2006-07-23 15:23 ` erik quanstrom
2006-07-23 16:43 ` Russ Cox
0 siblings, 1 reply; 5+ messages in thread
From: erik quanstrom @ 2006-07-23 15:23 UTC (permalink / raw)
To: 9fans
that makes sense.
do things happen differently if the process is not slain
but dies a natural death?
- erik
On Sun Jul 23 10:32:39 CDT 2006, rsc@swtch.com wrote:
> Your processes died a quick and painless death.
> The closeproc helpers, called upon to clean up after
> the battle, leave at a rate of one per five seconds.
>
> I was trying to avoid repeatedly creating and deleting
> processes if someone is killing procs frequently.
> In that case, the right number of closeprocs will stick
> around and get reused.
>
> Russ
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] closeproc slow
2006-07-23 16:43 ` Russ Cox
@ 2006-07-23 15:34 ` erik quanstrom
0 siblings, 0 replies; 5+ messages in thread
From: erik quanstrom @ 2006-07-23 15:34 UTC (permalink / raw)
To: 9fans
thanks.
- erik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] closeproc slow
2006-07-23 10:06 [9fans] closeproc slow erik quanstrom
@ 2006-07-23 16:34 ` Russ Cox
2006-07-23 15:23 ` erik quanstrom
0 siblings, 1 reply; 5+ messages in thread
From: Russ Cox @ 2006-07-23 16:34 UTC (permalink / raw)
To: 9fans
Your processes died a quick and painless death.
The closeproc helpers, called upon to clean up after
the battle, leave at a rate of one per five seconds.
I was trying to avoid repeatedly creating and deleting
processes if someone is killing procs frequently.
In that case, the right number of closeprocs will stick
around and get reused.
Russ
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] closeproc slow
2006-07-23 15:23 ` erik quanstrom
@ 2006-07-23 16:43 ` Russ Cox
2006-07-23 15:34 ` erik quanstrom
0 siblings, 1 reply; 5+ messages in thread
From: Russ Cox @ 2006-07-23 16:43 UTC (permalink / raw)
To: 9fans
> do things happen differently if the process is not slain
> but dies a natural death?
yes. the closeprocs only come out when you run slay.
their job is to close the file descriptors that the slain
processes left behind. you have to do it in a different proc
to avoid deadlocks in the general case.
see http://9fans.net/archive/2006/01/48 and the ensuing
discussion.
russ
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-23 16:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-23 10:06 [9fans] closeproc slow erik quanstrom
2006-07-23 16:34 ` Russ Cox
2006-07-23 15:23 ` erik quanstrom
2006-07-23 16:43 ` Russ Cox
2006-07-23 15:34 ` erik quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).