[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
Linux logging
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 20
Thread images: 1
File: 1452907106709.jpg (50 KB, 640x640) Image search: [iqdb] [SauceNao] [Google]
1452907106709.jpg
50 KB, 640x640
Linux is dumping tens of gigs of logs every day because the CPU in overheating (I don't care)

Is there a way to stop this crazy logging? It's both in
 kern.log 
and
 syslog 
>>
>>52464336
cool the CPU properly
>>
>>52464364
Not an option. I just want turn off CPU warnings of the kind "WARNING: CPU: 0 PID: 0 at /build/linux..." (and continues with a page of text, repeated infinitely)
>>
>>52464364
a way to redefine "properly" would help, too.
>>
journald.conf
SystemMaxUse=50M
>>
buy a fan
>>
>>52465326
I don't have a 'journald.conf' on my system.

And it would be nicer to stop the logging, because it itself uses resources.
>>
>>52464336
ln -s /dev/null kern.log

do the same for syslog
>>
>>52465757
Thanks, I'll do it as a last resort. If there are no better options...
>>
>>52464336
>tens of gigs
wew

but um

buy a fan and put the fan on the cpu
>>
uninstall syslogd and other stuff (i got it down to just dmesg)
>>
It just werks
>>
>>52466319
for now I commented out these tow guys in /etc/rsyslog.conf

>#$ModLoad imuxsock # provides support for local system logging
>#$ModLoad imklog # provides kernel logging support

the logging seems to have stopped
>>
Fix your CPU, nigger.
>>
kill yourself
>>
>>52465662
he expected you to have systemd, what kind of a linux user are you if you don't have systemd as PID1
>>
>>52467990
PID1 is /sbin/init

rsyslogd does the logging
>>
>>52464336

maybe you could use sed in root's crontab

something like
 @hourly sed -i.bak '/"WARNING: CPU: 0 PID: 0 "/d' /var/log/kern.log 
>>
>>52468142
@hourly sed -i.bak '/WARNING: CPU: 0 PID: 0 /d' /var/log/kern.log 

i always forget about sed's syntax . this will werk
>>
>>52464336
hahahha, that caption
Thread replies: 20
Thread images: 1
Thread DB ID: 444000



[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.