Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2001 19:15:26 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Ian Dowse <iedowse@maths.tcd.ie>
Cc:        current@FreeBSD.ORG
Subject:   Re: reboot(8) delay between SIGTERM and SIGKILL 
Message-ID:  <59156.985025726@critter>
In-Reply-To: Your message of "Mon, 19 Mar 2001 18:12:10 GMT." <200103191812.aa82109@salmon.maths.tcd.ie> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200103191812.aa82109@salmon.maths.tcd.ie>, Ian Dowse writes:
>
>I have noticed that reboot(8) sometimes appears not to wait long
>enough before sending the final SIGKILL to all processes. On a
>system that has a lot of processes swapped out, some processes such
>as the X server may get a SIGKILL before they have had a chance to
>perform their exit cleanup.
>
>The patch below causes reboot to wait up to 60 seconds for paging
>activity to end before sending the SIGKILLs. It does this by
>monitoring the sysctl `vm.stats.vm.v_swappgsian', and extending
>the default 5-second delay if page-in operations are observed.
>
>On my laptop (64Mb, IDE disk) with a number of big apps running,
>it can take around 20 seconds for all the paging to die down after
>the SIGTERMs are sent.

Sounds like a good heuristic

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59156.985025726>