supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Jared Rhine <jared@wordzoo.com>
Cc: supervision@list.skarnet.org
Subject: Re: Suggest documentation of "soft limit" logic for chpst
Date: Tue, 22 Nov 2005 21:47:04 -0800	[thread overview]
Message-ID: <1132724824.22936.76.camel@bear.wordzoo.com> (raw)
In-Reply-To: <20051122045459.GA1493@skarnet.org>

On Tue, 2005-11-22 at 05:54 +0100, Laurent Bercot wrote:
> > I had been trying to raise the limit on number of open files via 'chpst
> > -o 10000'.  I thought this was working properly, so I was focused on
> > examining the daemon for bugs.  Then I finally had the insight to test
> > whether 'chpst -o 10000 && ulimit -a' was doing what I expect.  Now I'm
> > doing a 'ulimit -n 10000' instead of a 'chpst -o 10000'.
> 
> chpst is not a shell builtin, and does not work the way ulimit does.

Sorry.  A typo of mine caused you to overinterpret my cluelessness.  I
am aware of both ulimit and chpst's behavior; I could not be using chpst
successfully in other contexts without that awareness.

The actual command I used to test was `chpst -o 10000 sh -c 'ulimit
-a'`.

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.  chpst
may still benefit from fuller ulimit-style support (specifically
raising), as opposed to only the "limit" operation of setrlimit(2).  As
I believe both chpst and the shell ulimit call use the same system call
to change process limits, chpst could in theory be made to support more
ulimit-style features.

> By the way, 10000 is overkill.

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 appreciate your attempts at education.

-- 
Jared Rhine <jared@wordzoo.com>



  reply	other threads:[~2005-11-23  5:47 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 [this message]
2005-11-23 13:35     ` Laurent Bercot
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=1132724824.22936.76.camel@bear.wordzoo.com \
    --to=jared@wordzoo.com \
    --cc=supervision@list.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).