[Bug 744818] New: /etc/sysconfig/ulimit has no effect on systemd based systems
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c0 Summary: /etc/sysconfig/ulimit has no effect on systemd based systems Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: fcrozat@suse.com ReportedBy: sbrabec@suse.com QAContact: qa@suse.de Found By: --- Blocker: --- In 11.4 it was possible to enable core files by editing /etc/sysconfig/ulimit. Starting with 12.1, it is not possible any more. It seems that systemd does not read this file at all. It seems that systemd does not provide any feature that would allow to set system wide limits. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c1 --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2012-02-02 15:49:26 UTC --- from a quick check at systemd documentation, it seems to be possible at the service level (man systemd.exec, LimitCore, etc..) but I don't see yet a possibility to set it system wide (plugged or not to /etc/sysconfig/ulimit) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c2 Roger Larsson <roger.larsson@e-gatan.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger.larsson@e-gatan.se --- Comment #2 from Roger Larsson <roger.larsson@e-gatan.se> 2012-02-17 18:10:54 UTC --- /etc/initscript is not used when starting programs. Some limits get set anyway but no memory limiting ones, like 'ulimit -Sm' and since I have a knotify4 process that grows uncontrollably I would like to set it... (bug #737827) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c4 --- Comment #4 from Roger Larsson <roger.larsson@e-gatan.se> 2012-02-20 11:20:18 UTC --- Source /etc/initscript - no need to parse to handle complex expressions Append resulting values, with suitable variable names to /etc/systemd/system.conf Add those variables to systemd == a plan? Or could it be simplified further? What if initscript was sourced before starting systemd? Would that work as intended? Why didn't init do it like that? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2012-02-20 11:57:33 UTC --- Not acceptable by upstream. there should be no source anywhere. The fix will be to handle similar value in /etc/systemd/system.conf (and adapt systemd parsing this file for the added value) and pass them as default values when environment is created for services. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c6 --- Comment #6 from Stanislav Brabec <sbrabec@suse.com> 2012-02-20 16:43:17 CET --- Well, either we will have a downstream patch for systemd to read /etc/sysconfig/ulimit directly, or we have to write a script to parse /etc/sysconfig/ulimit and update /etc/systemd/system.conf, and add the "Command:" keyword to /etc/sysconfig/ulimit. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2012-02-20 16:38:31 UTC --- as I wrote in comment 3, the plan is to have a generator (which can be a script) which will create a systemd readable file which will be included by /etc/systemd/system.conf -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c8 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andysem@mail.ru --- Comment #8 from Frederic Crozat <fcrozat@suse.com> 2012-03-21 12:41:51 UTC --- *** Bug 711363 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=711363 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c9 --- Comment #9 from Roger Larsson <roger.larsson@e-gatan.se> 2012-05-09 09:16:32 UTC --- Did a work around In /etc/X11/xinit/xinitrc # # Add your own lines here... # + # Set ulimits (especially memory related) + . /etc/initscript System works much better - I am using quite low limits resulting in (on an 8 GB RAM machine). max memory size (kbytes, -m) 2431320 virtual memory (kbytes, -v) 3691588 Philosophy behind this? There is no reason for any program to require that much memory. If a program runs into trouble with this and I see a good reason - I can raise the limits. (That has happened now and will be reported in another bug report) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
Did a work around
In /etc/X11/xinit/xinitrc
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c10 Alex Savin <alexo.veto@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexo.veto@gmail.com --- Comment #10 from Alex Savin <alexo.veto@gmail.com> 2012-05-14 17:40:21 UTC --- I have the same problems... (In reply to comment #9) thanks for "work around" - it works -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-07-03 19:00:20 CEST --- This is an autogenerated message for OBS integration: This bug (744818) was mentioned in https://build.opensuse.org/request/show/127019 Factory / systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=744818 https://bugzilla.novell.com/show_bug.cgi?id=744818#c12 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2013-03-12 12:22:25 UTC --- systemd has gained support for system wide ressources limitation (in /etc/systemd/system.conf), similar to what was possible with /etc/sysconfig/ulimit, which is available in 12.2 or later. Closing as fixed (I didn't wrote a generator / convertor for /etc/sysconfig/ulimit) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com