Views:
13,924β
Votes: 3β
Tags:
16.04
mount
debug
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/848237
Title:
How do I get rid of /sys/kernel/debug/tracing?
ID:
/2016/11/11/How-do-I-get-rid-of-_sys_kernel_debug_tracing_
Created:
November 11, 2016
Edited: June 12, 2020
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
At first I thought the problem had something to do with your Linux net-services
revealed by uname -a
command. Iβm on Ubuntu 16.04 desktop so had little hope I could solve these two questions. I read up on the situation from this link: (redhat.com - Realtime Tuning Guide) that discusses /sys/kernel/debug/tracing/
Question 1: How did βdebugfs on /sys/kernel/debugβ get mounted?
Imagine my surprise learning on my system kernel tracing was also enabled:
# cat /proc/sys/kernel/ftrace_enabled
1
Also when I type mount
, this is one of the lines that appears:
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
I rebooted my kernel 4.4.0-47
to 4.4.0-45
then to 4.8.5
and finally to 3.13.0-92
. ALL these versions have /sys/kernel/debug
mounted.
To answer your question (paraphrased) βhow did this happen?β -> it happens to everyone.
Question 2: How do I get rid of it?
To answer your question βhow do I get rid of it?β, use:
sudo umount debugfs
Note this only works for current session.
Summary Thoughts
Even though trace is enabled on all Ubuntu kernel versions Iβve tested, it is not activated until you tell it to start monitoring a specific event. After an event is activated then it will slow down your CPU.
Basically I would not worry about thisβ¦