RE: Kernel tuning for large maxsockets

2003-07-29 Thread Scot Loach
000 @@ -297,6 +297,10 @@ extern u_long sb_max; extern struct vm_zone *socket_zone; extern so_gen_t so_gencnt; +extern int maxripcb; +extern int maxdivcb; +extern int maxtcpcb; +extern int maxudpcb; struct file; struct filedesc; -Original Message- From: Mike S

Re: Kernel tuning for large maxsockets

2003-07-17 Thread Bosko Milekic
On Thu, Jul 17, 2003 at 08:45:29PM -0400, Scot Loach wrote: > Bosko: > > The problem I have is that each of the four pcb types has its own zone that > is preallocated to hold maxsockets pcbs. This is a waste of kva that could > be better used. Since I'm not using divert sockets or raw sockets,

RE: Kernel tuning for large maxsockets

2003-07-17 Thread Scot Loach
, and increase the others as much as possible. I should have a patch for this next week sometime. -Original Message- From: Bosko Milekic [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 5:52 AM To: Scot Loach Cc: '[EMAIL PROTECTED]' Subject: Re: Kernel tuning for large maxsockets

Re: Kernel tuning for large maxsockets

2003-07-16 Thread Bosko Milekic
On Tue, Jul 15, 2003 at 08:51:12PM -0400, Scot Loach wrote: > True, I can add a tunable for each of tcp, udp, raw, divert. > > What will happen when the system runs out of pcbs? You'll no longer be able to allocate and attach pcbs to sockets until one of the current pcb consumers returns tha

Re: Kernel tuning for large maxsockets

2003-07-16 Thread Bosko Milekic
On Tue, Jul 15, 2003 at 05:22:55PM -0400, Scot Loach wrote: > Currently, whenever maxsockets is increased, this causes kernel memory to be > preallocated for each type of pcb (tcp, udp, raw, divert). The number of > pcbs preallocated for each of these is always the same as maxsockets. > > This i

RE: Kernel tuning for large maxsockets

2003-07-15 Thread Mike Silbersack
On Tue, 15 Jul 2003, Scot Loach wrote: > True, I can add a tunable for each of tcp, udp, raw, divert. That's probably a good idea, I'm sure I'll end up messing with it a bit once you send it to me. :) > What will happen when the system runs out of pcbs? I think it should handle everything fine

RE: Kernel tuning for large maxsockets

2003-07-15 Thread Scot Loach
: Kernel tuning for large maxsockets On 15 Jul, Mike Silbersack wrote: > > On Tue, 15 Jul 2003, Scot Loach wrote: > >> Is there any reason I should not modify the kernel code to only let a small, >> fixed number of raw and divert pcbs be preallocated instead of having them >

Re: Kernel tuning for large maxsockets

2003-07-15 Thread Don Lewis
On 15 Jul, Mike Silbersack wrote: > > On Tue, 15 Jul 2003, Scot Loach wrote: > >> Is there any reason I should not modify the kernel code to only let a small, >> fixed number of raw and divert pcbs be preallocated instead of having them >> scale with maxsockets? > > Your idea is sound. > >> Nex

Re: Kernel tuning for large maxsockets

2003-07-15 Thread Mike Silbersack
On Tue, 15 Jul 2003, Scot Loach wrote: > Is there any reason I should not modify the kernel code to only let a small, > fixed number of raw and divert pcbs be preallocated instead of having them > scale with maxsockets? Your idea is sound. > Next, does this seem like a generally useful thing th

Kernel tuning for large maxsockets

2003-07-15 Thread Scot Loach
Currently, whenever maxsockets is increased, this causes kernel memory to be preallocated for each type of pcb (tcp, udp, raw, divert). The number of pcbs preallocated for each of these is always the same as maxsockets. This is probably a waste of memory for raw sockets and divert sockets, since