Re: [libvirt PATCH] src: fix max file limits in systemd services

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

 



On Wed, Aug 02, 2023 at 10:05:38AM +0100, Daniel P. Berrangé wrote:
This fixes

 commit 38abf9c34dc481b0dc923bdab446ee623bdc5ab6
 Author: Daniel P. Berrangé <berrange@xxxxxxxxxx>
 Date:   Wed Jun 21 13:22:40 2023 +0100

   src: set max open file limit to match systemd >= 240 defaults


Pity we can't drop it because of systemd 239 still being in distros
supported by us.

The bug referenced in that commit had suggested to set

 LimitNOFile=512000:1024

on the basis that matches current systemd default behaviour and is
compatible with old systemd. That was good except

* The setting is LimitNOFILE and these are case sensitive
* The hard and soft limits were inverted - soft must come
  first and so it would have been ignored even if the
  setting name was correct.
* The default hard limit is 524288 not 512000

Reported-by: Olaf Hering <olaf@xxxxxxxxx>
Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>

Reviewed-by: Martin Kletzander <mkletzan@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux