DragonFly BSD
DragonFly bugs List (threaded) for 2011-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue2019] panic: file desc: malloc limit exceeded


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Mar 2011 09:00:52 -0800 (PST)

    Hmm.  Clearly kern.maxfilesperuser isn't going to help for the
    sparse file descriptor table attack.  The defaults on an i386
    box seem to be on the order of 6000 processes x 25000 descriptors
    per process, which winds up being significant greater than a gigabyte
    of ram (let alone kvm)... so it goes boom.

    I think we do have to apply the maxfilesperuser limit to this situation
    counted based on the size of the fd table instead of based on the number
    of actual descriptors.  That would handle the situation.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]