supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Laurent Bercot <ska-supervision@skarnet.org>
Subject: Re: Suggest documentation of "soft limit" logic for chpst
Date: Wed, 23 Nov 2005 14:35:17 +0100	[thread overview]
Message-ID: <20051123133517.GA25718@skarnet.org> (raw)
In-Reply-To: <1132724824.22936.76.camel@bear.wordzoo.com>

> A typo of mine caused you to overinterpret my cluelessness.

 Okay. Sorry about that - couldn't be sure. ;)


> The rest of my concerns still stand.  It would be helpful to have the
> specific soft/hard behaviors of chpst documented in the man page.

 I'm a bit confused by your question, then.
 Only soft limits are taken into account by the kernel: only soft limits
can generate SIGXCPU, make sbrk() or open() fail, etc. etc. When you say
"changing the limits for a process", you're naturally talking about
soft limits.
 Hard limits exist only to prevent a process from raising its soft
limits beyond certain values. They're only taken into account when
performing setrlimit(). Hard limits don't limit a process, they limit
a process' limits. ;)

 I'll try to reformulate your suggestion:
 Whereas ulimit allows hard limit manipulations as well as soft limit
ones, chpst only handles soft limits. This can be confusing for ulimit
users; the chpst documentation should mention the fact that only soft
limits can be modified.
 Additionally, it would be nice to have an option to make chpst change
hard limits too, and thus emulate ulimit's behaviour more closely.
 Is my reformulation accurate ?


> With respect, since I did not indicate the context or appliciation for
> my need for 10K open files, you don't have any basis by which to judge
> whether it's overkill.  Trust me, I need 10K open files for the
> application in question, and there is nothing amiss with my application,
> system, or design.

 I believe you. Pardon my curiosity, then: what kind of application are
you running ? Is it a server, and in that case, is it using specific
techniques to avoid the c10k problem ? I'll understand perfectly if you
choose not to answer, or to answer in private.

-- 
 Laurent.


  reply	other threads:[~2005-11-23 13:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 20:46 Jared Rhine
2005-11-22  4:54 ` Laurent Bercot
2005-11-23  5:47   ` Jared Rhine
2005-11-23 13:35     ` Laurent Bercot [this message]
2012-09-21  7:04 suggest " Gildas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051123133517.GA25718@skarnet.org \
    --to=ska-supervision@skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).