Re: Should a package increase a kernel parameter? (Re: Bug#67481)
In article <[🔎] 200007200753.e6K7rXA16532@linda.lfix.co.uk> you wrote:
> Andrew is suggesting a mechanism for automatically increasing a kernel
> parameter when postgresql is going to need more shared memory than the
> default allocation.
> While what he asks for is not difficult to do, I wonder if we should
> not have a more general way of doing this. If I do this in postgresql,
> as I already do for KERNEL_FILE_MAX, it will not take into account the
> needs of other packages. Perhaps we should have a package that can be
> used for other packages to register their requirements and thus raise
> kernel limits to meet the demands of all packages that might encounter
> those limits.
[snip]
Hello!
We could use the same approach as with /etc/conf.modules. The files in
eg. /etc/sysctl.d/ could be assmbled to /etc/sysctl.conf.
Another possibility would be to modify /sbin/sysctl or
/etc/init.d/procps.sh to read /etc/sysctl.d/* instead of only
/etc/sysctl.conf.
cu andreas
Reply to: