Skip to contentSkip to conversation

Suggested tunables addition: sysctl kernel.core_pattern

Powertop George Barrett 3 participants 4 messages Jan 2, 2016 – Jan 5, 2016

lore
Share & tools
lore

George Barrett

author
#0 lore raw

Hi, first off thanks for the great tool!

I currently rely on a systemd unit file present in the Fedora package for powertop to do most of my laptop's power saving config on boot, and it works great. However, I've noticed a missing tunable which might be helpful for some folks: setting the kernel.core_pattern sysctl parameter to |/dev/null or similar. On my x220, this parameter set to it's default causes systemd-coredump to peg a single core, sometimes for quite an extended period of time. On many devices this would cause substantially greater heat output, and most importantly substantially higher power consumption.

I had a quick browse of the source code to see if this addition was trivial enough for me to submit a patch over, but from what I could see the existing tunables seem to work exclusively with sysfs. Unfortunately I don't write much C++, so I apologise for sending this particular email rather than submitting a patch for y'all.

Thanks

#1 lore raw
Quoted 10 lines · George Barrett

Hi, first off thanks for the great tool!

I currently rely on a systemd unit file present in the Fedora package for powertop to do most of my laptop's power saving config on boot, and it works great. However, I've noticed a missing tunable which might be helpful for some folks: setting the kernel.core_pattern sysctl parameter to |/dev/null or similar. On my x220, this parameter set to it's default causes systemd-coredump to peg a single core, sometimes for quite an extended period of time. On many devices this would cause substantially greater heat output, and most importantly substantially higher power consumption.

I have to ask, why do you get enough core dumps for this to be a problem? Wouldn't a better solution be to fix the application that dumps core?

/MF

author
#2 lore raw

I primarily use my laptop for hacking on my own little projects, so this occurs fairly frequently

Quoted 23 lines · Magnus Fromreide
Quoted 16 lines · George Barrett

Hi, first off thanks for the great tool!

I currently rely on a systemd unit file present in the Fedora
package for
powertop to do most of my laptop's power saving config on boot, and
it works
great. However, I've noticed a missing tunable which might be
helpful for
some folks: setting the kernel.core_pattern sysctl parameter to
|/dev/null
or similar. On my x220, this parameter set to it's default causes systemd-coredump to peg a single core, sometimes for quite an
extended
period of time. On many devices this would cause substantially
greater heat
output, and most importantly substantially higher power consumption.

I have to ask, why do you get enough core dumps for this to be a problem?
Wouldn't a better solution be to fix the application that dumps core?

/MF

#3 lore raw
Quoted 1 line · George Barrett

I primarily use my laptop for hacking on my own little projects, so this occurs fairly frequently

hmm but wouldn't you WANT the core dumps?

(I know I do ;-) )