Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Soft limit?

limit soft
0
Posted

Soft limit?

0

A. It might, might, be possible as a soft limit – but it’s got a lot of issues. First off, tracking memory usage of the hosts tables is itself a huge job. There are multiple places were stuff is purged, added to the structures as pointers, etc. and there’s a queue of purged entries for reuse to cut down on the malloc() calls. Secondly, the purge is resource intensive, and has been the cause of deadlocks before – you don’t dare lock the structures for too long – packets keep arriving, and FAST on the busy network that has the memory issues in the first place. Since you can’t lock for long, you can only purge a small # of entries. Q. But what about -x and -X. A. Ah, yes, grasshopper – you have been reading the man page. Good user. The -x and -X options are pretty crude. They say “if you have allocated n (hosts|sessions), fail the allocation of (host|session) n+1”. It works in the context of preventing memory exhaustion – if you can calculate the right values based on your available memor

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123