All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Juergen Gross <jgross@suse.com>, <xen-devel@lists.xenproject.org>
Cc: Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH v4 2/2] tools/xenstore: set open file descriptor limit for xenstored
Date: Mon, 27 Sep 2021 15:13:35 +0100	[thread overview]
Message-ID: <f858dda9-b844-48e4-c079-75296cc36316@citrix.com> (raw)
In-Reply-To: <20210927104813.19772-3-jgross@suse.com>

On 27/09/2021 11:48, Juergen Gross wrote:
> Add a configuration item for the maximum number of open file
> descriptors xenstored should be allowed to have.
>
> The default should be "unlimited" in order not to restrict xenstored
> in the number of domains it can support, but unfortunately the prlimit
> command requires specification of a real value for the number of files,
> so use 262144 as the default value.

Citation needed.

prlimit -nunlimited

prlimit --nofile=unlimited

both work fine, and strace confirms they issue correct system calls.

Support for "unlimited" as a parameter has existed for the entire
lifetime of the utility,
https://github.com/karelzak/util-linux/commit/6bac2825af7216c5471148e219dbcf62ec5ede84

~Andrew



  reply	other threads:[~2021-09-27 14:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 10:48 [PATCH v4 0/2] tools/xenstore: set resource limits of xenstored Juergen Gross
2021-09-27 10:48 ` [PATCH v4 1/2] tools/xenstore: set oom score for xenstore daemon on Linux Juergen Gross
2021-09-27 14:44   ` Ian Jackson
2021-09-27 10:48 ` [PATCH v4 2/2] tools/xenstore: set open file descriptor limit for xenstored Juergen Gross
2021-09-27 14:13   ` Andrew Cooper [this message]
2021-09-27 14:24     ` Juergen Gross
2021-09-27 14:40       ` Andrew Cooper
2021-09-27 14:52         ` Juergen Gross
2021-09-27 14:54           ` Andrew Cooper
2021-09-27 14:57             ` Juergen Gross
2021-09-27 15:19               ` Ian Jackson
2021-09-27 15:12       ` Ian Jackson

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=f858dda9-b844-48e4-c079-75296cc36316@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=jgross@suse.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.