Re: [systemd-devel] Increasing the default RLIMIT_NOFILE

2018-11-15 Thread Andrew Eikum
On Thu, Nov 15, 2018 at 09:56:18AM +0100, Lennart Poettering wrote:
> On Mo, 29.10.18 08:09, Andrew Eikum (aei...@codeweavers.com) wrote:
> > This is about the increase in the default RLIMIT_NOFILE to 256k, see
> > commit 8aeb1d317 and this pull request
> > https://github.com/systemd/systemd/pull/10244
> > 
> > I think this is a great change. However, we have seen real
> > applications using over 300k handles when using the eventfd-backed
> > synchronization primitives implementation in Wine. Debian-derived
> > distros have set this limit to 1024*1024 by default for years. Raising
> > the limit to this number would help these applications, and would
> > unify around a number that is already in common use.
> 
> So, I prepped this PR now:
> 
> https://github.com/systemd/systemd/pull/10780
> 
> It's not quite at the 1M yet you requested. I am not sure we should go
> to the max right away, hence 512K, as something that is higher than
> the 300K you saw, but still leaves some room upwards.
> 

Thanks!

> I hope this makes sense,
> 

512K is probably enough for our purposes, though it's still fairly
tight given we've seen over 300K in practice. I don't understand why
unifying with the value Debian has used for a long time isn't the
preferred option. But anyway, this is hardly in my area of
understanding. It's obviously your call to make.

Thanks for your time,
Andrew
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Debugging active timers that do not trigger

2018-11-15 Thread Michal Koutný
On 11/8/18 11:46 AM, Andrei Borzenkov wrote:
> It is possible that system never ends booting. Do you have any pending
> jobs (systemctl list-jobs)? What "systemctl is-system-running" says?
I don't think this is the case. The OnBootSec= is taken relatively to
the instant when the kernel started counting time (on Linux implemented
via CLOCK_MONOTONIC).

@Daniel, is it possible there are some daemon-reloads running
concurrently with the timer? More precisely, can it happen the timer
expires exactly when systemd reloads?

Michal



signature.asc
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Increasing the default RLIMIT_NOFILE

2018-11-15 Thread Lennart Poettering
On Mo, 29.10.18 08:09, Andrew Eikum (aei...@codeweavers.com) wrote:

> Hi all,
> 
> This is about the increase in the default RLIMIT_NOFILE to 256k, see
> commit 8aeb1d317 and this pull request
> https://github.com/systemd/systemd/pull/10244
> 
> I think this is a great change. However, we have seen real
> applications using over 300k handles when using the eventfd-backed
> synchronization primitives implementation in Wine. Debian-derived
> distros have set this limit to 1024*1024 by default for years. Raising
> the limit to this number would help these applications, and would
> unify around a number that is already in common use.

So, I prepped this PR now:

https://github.com/systemd/systemd/pull/10780

It's not quite at the 1M yet you requested. I am not sure we should go
to the max right away, hence 512K, as something that is higher than
the 300K you saw, but still leaves some room upwards.

I hope this makes sense,

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel