Re: sysctl maxfiles

2008-09-28 Thread Peter Jeremy
On 2008-Sep-28 08:29:20 +1000, Aristedes Maniatis <[EMAIL PROTECTED]> wrote: >I guess then I should ask the question a different way. How much >memory does each fd use and which pool of memory does it come from? 72 bytes for i386, 120 bytes for amd64. It's a UMA zone 'Files'. You can check wi

Re: sysctl maxfiles

2008-09-27 Thread Miroslav Lachman
Peter Jeremy wrote: On 2008-Sep-27 22:14:09 +0200, Miroslav Lachman <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] ~/# fstat -u www | wc -l 9931 [EMAIL PROTECTED] ~/# fstat -u root | wc -l 718 [EMAIL PROTECTED] ~/# fstat | grep httpd | wc -l 6379 [EMAIL PROTECTED] ~/# fstat | grep httpd

Re: sysctl maxfiles

2008-09-27 Thread Aristedes Maniatis
On 28/09/2008, at 8:18 AM, Gary Palmer wrote: At least one port recommends you set kern.maxfiles="4" in /boot/loader.conf. I think its one of the GNOME ports. I'm pretty confident you can run that without too many problems, and maybe go higher, but if you really want to know the limit

Re: sysctl maxfiles

2008-09-27 Thread Gary Palmer
On Sat, Sep 27, 2008 at 07:05:08PM +1000, Aristedes Maniatis wrote: > > On 27/09/2008, at 1:02 PM, Jeremy Chadwick wrote: > > >Anyway, I'd like to know why you have so many fds open > >simultaneously in > >the first place. We're talking over 11,000 fds actively open at > >once -- > >this is

Re: sysctl maxfiles

2008-09-27 Thread Peter Jeremy
On 2008-Sep-27 22:14:09 +0200, Miroslav Lachman <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] ~/# fstat -u www | wc -l > 9931 >[EMAIL PROTECTED] ~/# fstat -u root | wc -l > 718 >[EMAIL PROTECTED] ~/# fstat | grep httpd | wc -l > 6379 >[EMAIL PROTECTED] ~/# fstat | grep httpd | wc -l >

Re: sysctl maxfiles

2008-09-27 Thread Oliver Fromme
Miroslav Lachman wrote: > I don't know what files are "really" open in the meaning of > kern.maxfiles. I have webserver with about 100 hosted domains and there > is some numbers: > > [EMAIL PROTECTED] ~/# fstat -u www | wc -l > 9931 > [EMAIL PROTECTED] ~/# fstat -u root | wc -l >

Re: sysctl maxfiles

2008-09-27 Thread Jeremy Chadwick
On Sat, Sep 27, 2008 at 10:14:09PM +0200, Miroslav Lachman wrote: > Jeremy Chadwick wrote: >> On Sat, Sep 27, 2008 at 11:10:01AM +1000, Aristedes Maniatis wrote: >> >>> By default FreeBSD 7.0 shipped with the sysctls set to: >>> >>> kern.maxfiles: 12328 >>> kern.maxfilesperproc: 11095 > > [...] > >

Re: sysctl maxfiles

2008-09-27 Thread Miroslav Lachman
Jeremy Chadwick wrote: On Sat, Sep 27, 2008 at 11:10:01AM +1000, Aristedes Maniatis wrote: By default FreeBSD 7.0 shipped with the sysctls set to: kern.maxfiles: 12328 kern.maxfilesperproc: 11095 [...] Anyway, I'd like to know why you have so many fds open simultaneously in the first place

Re: sysctl maxfiles

2008-09-27 Thread Aristedes Maniatis
On 27/09/2008, at 1:02 PM, Jeremy Chadwick wrote: Anyway, I'd like to know why you have so many fds open simultaneously in the first place. We're talking over 11,000 fds actively open at once -- this is not a small number. What exactly is this machine doing? Are you absolutely certain tu

Re: sysctl maxfiles

2008-09-26 Thread Jeremy Chadwick
On Sat, Sep 27, 2008 at 11:10:01AM +1000, Aristedes Maniatis wrote: > By default FreeBSD 7.0 shipped with the sysctls set to: > > kern.maxfiles: 12328 > kern.maxfilesperproc: 11095 > > We recently bumped up against these limits in an unfortunate way and we > are going to raise them. I have some qu

sysctl maxfiles

2008-09-26 Thread Aristedes Maniatis
By default FreeBSD 7.0 shipped with the sysctls set to: kern.maxfiles: 12328 kern.maxfilesperproc: 11095 We recently bumped up against these limits in an unfortunate way and we are going to raise them. I have some questions: * why are the numbers set the way they are? They aren't round numb