Trouble with resources under network load
cswiger at mac.com
Sun Feb 5 08:45:13 PST 2006
Andrew Pantyukhin wrote:
> I've got P4 box with 256Mb RAM. I want it to be able to
> forward 5Mbit/s between 500 PPTP clients (no crypto/
> compression) and our ISP. I understand we should
> probably get Cisco for this, or at least a higher-spec
> box, but I just want this setup to be kinda proof of concept.
> Complicated things can be done using cheap hardware
> and a good OS. Can't they?
> I'm constantly stumbling upon some out-of-resources
> problems. Just to name a couple:
> named: client 10.32.23.92#1714:
> error sending response: not enough free resources
> snmpd: sysctl get: Cannot allocate memory
> I have these in loader.conf and sysctl.conf:
[ ... ]
> What's wrong?
For one thing, if you've got a machine with 256MB of RAM, you cannot possibly be
able to dedicate 256MB just to kern.ipc.maxpipekva. Likewise, a machine with
256MB of users would auto-tune kern.maxusers to ~100 or so, and kern.maxfiles
ought to be under 10000, if not half that.
You should revert to the defaults and make gradual tuning changes, if needed,
More information about the freebsd-questions