kernel killing processes when out of swap

Garance A Drosihn drosih at rpi.edu
Tue Apr 12 11:35:47 PDT 2005


At 6:46 PM +0200 4/12/05, Dag-Erling Smørgrav wrote:
>"Steven Hartland" <killing at multiplay.co.uk> writes:
>>  Thanks for the feedback seems very strange that sshd was the first thing the
>>  kernel killed off; so unless it was actually 
>>at fault ( would be very strange )
>>  it would have been one of the smallest not largest processes.
>>  The box has runs several 200M+ process and more 100M+ where
>>  as sshd is usually 6M.
>>
>>  So this leads me to the questions:
>>  1. Any know issues ssh which could make it eat memory?
>>  2. Is there possibly a bug with the "large process detection"?
>
>There is no "large process detection".  The first process that tries
>to fault in a new page after the system runs out of swap gets killed.

From time-to-time, we talk about implementing some form of SIGDANGER,
similar to what AIX has.

-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu


More information about the freebsd-hackers mailing list