On 02/22/2016 08:18 AM, Hans Verkuil wrote: > On 02/22/2016 04:29 AM, Hans Verkuil wrote: >> This message is generated daily by a cron job that builds media_tree for >> the kernels and architectures in the list below. > > There is something weird going on when this job is started from cron. I'm getting > strange errors like this: > > /bin/sh: fork: retry: No child processes > make[5]: fork: Resource temporarily unavailable > > which I don't get when I build manually. It happened after a recent apt-get dist-upgrade > and I haven't yet found the cause. So here is the reason: systemd has a new DefaultTasksMax setting which is 512 by default. It seems unrelated to rlimit since it doesn't show up with ulimit -a, so this confused the hell out of me. Setting it explicitly in my /etc/systemd/system.conf fixes the issue. More details about that setting is available here: https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html Aaargh! I wasted 3 hours of my life hunting this down... Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html