On 2004.10.20, Brad Chick <[EMAIL PROTECTED]> wrote:
> We are using the nsv arrays of aolserver to handle a large load of queries.
> The application can be seen at
>
> http://results.doitsports.com/lasalle/2004/
>
> With that application, we handled 1.7 million queries in a day (using 5
> servers).
>
> We put 21MB worth of data into 39 arrays.

Nice!  That's a great success story for your application, your dev. team
and AOLserver.  Any chance you'd write a whitepaper?  :-)

> Under a lot of load, the nsd process swells (just soaks up all available RAM
> (which is 2G on each box)) and hangs. There is no thrashing going on; the
> SIZE is just barely bigger than the RSS under top.

Interesting.  Just so I'm clear on what you're saying: the nsd footprint
only grows under high load?

> We are using aolserver 4.0 on Linux version 2.4.25-grsec and having a hard
> time figuring out what the ideal configuration would be.

What patchlevel of AOLserver 4.0 are you running?  Have you tried 4.0.8?

Also, you may want to consider upgrading to a 2.6 kernel and using NTPL.
IIRC, 2.4 kernels still use LinuxThreads ...

> We have tried adjusting the folllowing paramters:
> nsvbuckets (we've tried 8, 16, 32, 64)
> maxthreads (currently 20)
>
> We have not tried adjusting:
> stacksize
>
> Does anyone have any idea what the ideal config would be for this app? What
> should we set nsvbuckets to? Maxthreads?

You may want to take a look at [ns_info pools] and try and figure out
where your memory is going.  If [ns_info pools] thinks your memory usage
is far lower than what the OS is reporting for the process, then there
may be a memory leak at the C level happening -- what modules are you
loading into the server?

If [ns_info pools] accounts for all the memory that the OS says the
process is using, then look at what threads are using all the memory and
try to trace back to where it's being used up ...

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to