[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 2/2] tools/xenstore: set open file descriptor limit for xenstored


  • To: Juergen Gross <jgross@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Mon, 27 Sep 2021 15:40:09 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=oOEl2Y+nsFDfz8F3hMxC2R9NibfcB39NbSJvpyeONt8=; b=UDk+h/KmjgrPqPGS2azd77Zq+iDVC8cs0hvJvZEjw83lT887+tgFK5Zx3iXkdrw0SbvrTAgdAojfaNoMyn4e1KEsgHabMFkxXYziZZYMducvxc0E3OISAZC6Z0BSAri35GNtuRVYSwpPALBrDMWlyl+JJvwMNBh2JYrjfrOTL1qDl+eJEYLyf7aYviPTvolTsLX1KTZ20w04R3RqFAcNc4doZfROHZqnBOuKvNCm/oOx4C8F0vWYsY3Hy78j5uKV6FxxDTxU69/e4ptTQX6YGlSfmDbvY0V7cKsRj3NN4Fa0hcfgX80JsvjyQQgGVpLojTkgXGsrJoUT+Wr2813DnA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CFuz92T6NghP7WdMUt5rleuaChtOsJrvqO5TMWiD2I390lceuiGDsBe4zVq/ogI0nL2J9A8y5927OI7VaGueRWfXjNt6hUPnbWbcMtuoBqmlMbjw2vjN0LqjbUoWMmrChwLMvHO9wd4LKz0NHVQCAtH171WN8Rj2e1anzpk8/FLw6K6FAzNHIHNNWniWnTz+ZECOCX9UNi5AhuA65DvvKTTEHRQy/37xjdx3d4I8JxszpzXM4IlECtZLDV/9ZU8unTPQ6M3Gy6ILPRr4hi+JHmSiQoYBg4s+poLtGnRJ5WrZKioziBLd8GvvAWrWzQLkYAgU4aR93iL1bWf9UNC8iQ==
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 27 Sep 2021 14:40:28 +0000
  • Ironport-data: A9a23:O6+lvqDrR3KJIRVW/9jkw5YqxClBgxIJ4kV8jS/XYbTApGgkhWEFm zZNCjrXPPrbZ2SncthxaYXi9hgFvpfcz98wQQY4rX1jcSlH+JHPbTi7wuYcHM8wwunrFh8PA xA2M4GYRCwMo/u1Si6FatANl1ElvU2zbue6WLOs1hxZH1c+EX9w0007wobVv6Yz6TSHK1LV0 T/Ni5W31G+Ng1aY5UpNtspvADs21BjDkGtwUm4WPJinj3eH/5UhN7oNJLnZEpfNatI88thW5 Qr05OrREmvxp3/BAz4++1rxWhVirrX6ZWBihpfKMkQLb9crSiEai84G2PQghUh/ugrTh9t+z NZ0sL+2TystE+7nnOsgXEwNe81+FfUuFL7vJHG+tYqYzlHccmuqyPJrZK00FdRGoKAtWzgIr KFGbmBWBvyAr7veLLaTY+9gnMk8auLsO5sSoCpIxjDFF/c2B5vERs0m4PcFh2xp25wTRJ4yY eJHUzUyckSdQCFEZFcmCaMFvuCX2T7wJmgwRFW9+vNsvjm7IBZK+KjgNp/Zd8KHQe1Rn12Ev STW8mLhGBYYOdeDjz2f/RqEhODVmjjgcJkPD7D+/flv6HWMwkQDBRtQUkG0ydG4lUyWS99ZM 1YT+Cclse417kPDczXmd0Tm+jje5EdaAocOVb1hgO2Q9kbKyzemXHAPQTpCUdkFsskaQRFp/ VuGoty8UFSDr4apYX6a876Vqxa7Ni4UMXIOaEc4cOcV3zXwiNtt102eF76PBIbw3oWsRm2gq 9yfhHJm74j/m/LnwElSEbrvrTW2utDtRxM56x/bV2aoh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M3Z 2jL0MFsG6D39oIQgW4FALVv21NDYLKvKyMQJiyVozhvoM7FaE5FWccW4k/wjQigcpEKXT3xRz6 ozKg6l5VIYdRaU/KK/zOJngvmZLdEEJBETr46Zbw8cTaWg5Co0wCr1erTs1IUQhgnosYFdZrZz ZSU8hw/0REgZFAXisSh+iP2La6DsWy17MS6O/pBmXYx2fmr6h9A3hCvwTyl4gVXZHwbM72Vs/x rmvZ7ILyg9ExA+lXxjf09rAL
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27/09/2021 15:24, Juergen Gross wrote:
> On 27.09.21 16:13, Andrew Cooper wrote:
>> 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.
>
> Not on my test system:
>
> # prlimit --pid 734 --nofile=unlimited
> prlimit: failed to set the NOFILE resource limit: Operation not permitted
> # prlimit --pid 734 --nofile=262144
> #

What does strace say in both of these cases?

>
>> Support for "unlimited" as a parameter has existed for the entire
>> lifetime of the utility,
>> https://github.com/karelzak/util-linux/commit/6bac2825af7216c5471148e219dbcf62ec5ede84
>>
>
> Yes, but not all systems seem to support raising the limit to
> "unlimited".

That's as maybe, but

prlimit64(0, RLIMIT_NOFILE, {rlim_cur=RLIM64_INFINITY,
rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted)

is a Linux issue, not a prlimit bug.

~Andrew




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.