> So if my BufSize is set to 32k, and my image sizes are typically 10k or
> less, would it make more sense to use a 10k buffer instead of 32k?

I would think so, yes. The sample configuration file uses 12288, which
seems to be a good default.

> disadvantage of leaving it at 32k?  Also, "top" show mathopd is using 16MB.
> If this memory isn't cache, what is it?  Is it just the temporary memory
> space as images are read from the file system and sent on the web?  Or am I
> just wasting RAM if my image sizes are typically under 10k anyway?

The amount of memory used by mathopd is roughly

 NumConnections * (BufSize + InputBufSize)

Also note that memory usage should not grow (or shrink) over time.

You can reduce memory footprint either by decreasing NumConnections or
BufSize.

HTH

Cheers
Michiel

Reply via email to