Bug#823530: systemd 228 reduced maximum number of tasks in a cgroup to 512 by default

Sebastian Schmidt yath at yath.de
Thu May 5 19:14:20 BST 2016


Package: systemd
Version: 229-3
Severity: normal
Tags: upstream

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Whilst debugging why Chrome would regularly fail to create new
threads[1] and zsh couldn’t fork I noticed that:
- - All affected processes run in the /system.slice/xdm.service cgroup
- - “systemctl status xdm.service” says “Tasks: 476 (limit: 512)”
- - The changelog for systemd 228 reads[2]:

        There's a new system.conf setting DefaultTasksMax= to control
        the default TasksMax= setting for services and scopes running on
        the system.
        […]
        The setting now defaults to 512, which means services that are
        not explicitly configured otherwise will only be able to create
        512 processes or threads at maximum, from this version on.

- - Nothing in xdm’s PAM configuration would load pam_systemd for creating
  a session.

I’m not sure whether using pam_systemd would actually fix that; but
even then I find this new limit per cgroup at least surprising and
it apparently breaks a lot of software.

Sebastian

1: https://crbug.com/602002
2: https://github.com/systemd/systemd/blob/ccddd104fc95e0e769142af6e1fe1edec5be70a6/NEWS#L373-393

- -- Package-specific info:

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-rc5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages systemd depends on:
ii  adduser         3.114
ii  libacl1         2.2.52-3
ii  libapparmor1    2.10-3+b1
ii  libaudit1       1:2.4.5-1+b1
ii  libblkid1       2.27.1-6
ii  libc6           2.22-4
ii  libcap2         1:2.24-12
ii  libcap2-bin     1:2.24-12
ii  libcryptsetup4  2:1.7.0-2
ii  libgcrypt20     1.6.5-2
ii  libgpg-error0   1.21-2
ii  libkmod2        22-1
ii  liblzma5        5.1.1alpha+20120614-2.1
ii  libmount1       2.27.1-6
ii  libpam0g        1.1.8-3.2
ii  libseccomp2     2.2.3-3
ii  libselinux1     2.4-3+b1
ii  libsystemd0     229-3
ii  mount           2.27.1-6
ii  util-linux      2.27.1-6

Versions of packages systemd recommends:
ii  dbus            1.10.8-1
ii  libpam-systemd  229-3

Versions of packages systemd suggests:
pn  systemd-container  <none>
pn  systemd-ui         <none>

Versions of packages systemd is related to:
ii  udev  229-3

- -- Configuration Files:
/etc/systemd/logind.conf changed [not included]
/etc/systemd/system.conf changed [not included]

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVyuNePhx3EthBlqjAQjY8Q/9HviuCq5g+ypYs8rQLZ4JEjERYeDVNM0I
MsvlwRRqPwZ+Y3b1E6FxQ85oKPX1OYrvCxNS7ZPmRP9h7HNvJavp/UTFlMmHe0hS
Wx1a+NZqnzcWZ7fG/rocpBj9U8QB5EMsz285Rf159H44TTk9oJX1h9DrNgs8rq2W
f95YXz6R/8JgyCTrZia/+gQMSc4piUG9N53lfPfiyOZfXIM4nvH2KVu/TloFRtrK
Waq63dVbz1ZRCZyNCwgmEuaWV5UGjsFqv/qn1edoGl05odVGlUdlGLV/TUA1oauc
7yAJm4s8/6xz/+AR7cIrp7dwXdp9/uG5+xKRdIiSgiUQlym46rsJ4/u0D6ywF/mI
SmUceEmlKrjL9V6F/zTPzhBEpS2pIB8jeY92klZqzJBQEG/5IWdC29gXxpkNy1ST
V1aki3ybyBHXvHii6z1sVR3oRQ/RmYm3A/yCAFlz2QTfuN88ETXKDAG/03xkHJQn
/eK7tOlzzkBHnUUAFrw/Sfj6FmtIVfyv7E6LAHvjQm2Amcxm+Dka+OTSqf77KxNx
oeVQtVcfcD9I6d71N9bFQ+qSuGFFjaYD67jNu8j9FX2NGvBFlETDLXLax9YNpsaQ
wFwQEiEbDUFa7A6SaWz6AHvNqlLQTvVNesFd2FQ9ROU5OKG0iTYkLlv07FZIWMxJ
6nyy5S+/ldw=
=vdq2
-----END PGP SIGNATURE-----



More information about the Pkg-systemd-maintainers mailing list