modify kernel parameters

165 views
Skip to first unread message

Peter Zoltan Keresztes

unread,
Jul 17, 2016, 4:37:39 PM7/17/16
to CoreOS User
Hello,

I want to set a kernel parameter on coreos. I have created a file in /etc/sysctl.d/ called vm_maxmem.conf with the following value vm.max_map_count = 2147483648 .

When I restart the systemd-sysctl.service it fails with the following error:

-- Unit systemd-sysctl.service has begun starting up.

Jul 17 20:23:48 core.z0z0.tk systemd-sysctl[779]: Couldn't write '2147483648' to 'vm/max_map_count', ignoring: Invalid argument

Jul 17 20:23:48 core.z0z0.tk systemd[1]: systemd-sysctl.service: Main process exited, code=exited, status=1/FAILURE

Jul 17 20:23:48 core.z0z0.tk systemd[1]: Failed to start Apply Kernel Variables.

-- Subject: Unit systemd-sysctl.service has failed

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- 

-- Unit systemd-sysctl.service has failed.

-- 

-- The result is failed.

Jul 17 20:23:48 core.z0z0.tk systemd[1]: systemd-sysctl.service: Unit entered failed state.

Jul 17 20:23:48 core.z0z0.tk sudo[768]: pam_unix(sudo:session): session closed for user root

Jul 17 20:23:48 core.z0z0.tk systemd[1]: systemd-sysctl.service: Failed with result 'exit-code'.

Jul 17 20:23:48 core.z0z0.tk systemd-tmpfiles[769]: [/usr/lib64/tmpfiles.d/trousers.conf:1] Duplicate line for path "/var/lib/tpm", ignoring.

Jul 17 20:23:48 core.z0z0.tk systemd-tmpfiles[769]: [/usr/lib64/tmpfiles.d/var.conf:20] Duplicate line for path "/var/lib", ignoring.

Jul 17 20:23:48 core.z0z0.tk systemd[1]: Started Cleanup of Temporary Directories.

-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Any suggestion on how to make this work?

Thanks in advance
Peter


Brandon Philips

unread,
Jul 21, 2016, 7:05:26 PM7/21/16
to Peter Zoltan Keresztes, CoreOS User
Hello Peter-

I am not in front of a machine to try this out but two ideas:

1) Is that a valid value? Can you set it manually through /proc/sys?
2) Perhaps replace the underscore with a dash? 

Cheers,

Brandon

--
You received this message because you are subscribed to the Google Groups "CoreOS User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coreos-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages