Questions tagged [sysfs]
10 questions
55
votes
7 answers
How do I modify "/sys/kernel/mm/transparent_hugepage/enabled"
I use mongodb 3.0 and I find a warning:
MongoDB shell version: 3.0.0
connecting to: test
Server has startup warnings:
2015-03-13T16:28:29.405+0800 I CONTROL [initandlisten]
2015-03-13T16:28:29.406+0800 I CONTROL [initandlisten] ** WARNING:…
Feng Yu
- 857
- 3
- 8
- 17
28
votes
1 answer
What's the "/sys" directory for?
A while ago I noticed this directory that I had not ever seen before, /sys. I researched a bit and read that "modern Linux systems" often have this directory, and that it manages devices. I thought that was what /dev was for. I can't seem to find a…
Chev_603
- 1,666
- 3
- 18
- 29
4
votes
2 answers
No `rc.local` in 16.10, so how can I add a command to set brightness on boot?
I previously solved the problem by adding a command:
echo X > /sys/class/backlight/intel_backlight/brightness
to /etc/rc.local on Ubuntu 14.04 . But there is no /etc/rc.local on Ubuntu 16.10 . I don't know how to solve it now. Is there a new…
Ims Joe
- 43
- 1
- 1
- 3
3
votes
2 answers
'cat': can't open file: Permission denied
I am trying to copy the whole / directory to some other location. When doing cp recursively, it fails on some files like:-
/ # ls -lrt /sys/module/nf_conntrack_ipv4/uevent
--w------- 1 root root 4096 Mar 7 06:29…
Rahul
- 269
- 1
- 3
- 9
2
votes
1 answer
Ubuntu 16.04 Complicated Interface Names
I'm trying to figure out how to restore the simple interface names in Ubuntu 16.04. I.e. enp3s0 renamed to eth0.
I have tried to modify the GRUB configuration. I have tried editing /etc/udev/rules.d/10-network.rules, but both methods did nothing…
Faith Skater
- 63
- 1
- 5
2
votes
2 answers
how do I make "/sys/kernel/mm/transparent_hugepage/defrag" never status to close the THP warning
reboot the linux (ubuntu 16.04 redis 4.011)
/var/log/redis.log
shows
# WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command…
robspin
- 133
- 1
- 6
0
votes
2 answers
How to delete debug files in /sys/kernel/debug?
sudo find / -size +5G -ls
listed debug files with more than 8GB size at /sys/kernel/debug/dri/n/amdgpu_vram
(n is the number of GPUs)
These might be useless debug files.
Cannot delete them (error "Operation not permited").
How to delete these…
cjclm7
- 195
- 1
- 2
- 12
0
votes
0 answers
From which file lsblk command reads a USB mountpoint (lsblk -o MOUNTPOINT)?
lsblk manual page says that command reads from /run/udev/data/ and /sys/bus/usb/device/* directory files to display an info to the user.
However I couldn't connect these two directories to obtain the same info set as lsblk does. To be more clear, I…
ojacomarket
- 101
- 1
0
votes
0 answers
/etc setting to ping as non-root freely
Since some not long time ping stopped working as non-root (I'm not sure if it distro-wide or maybe it is my custom kernel). The ping is fixed by this command:
sysctl -w net.ipv4.ping_group_range="0 1000"
But the problem is I cannot add it to…
midenok
- 752
- 1
- 7
- 13
0
votes
1 answer
16.04 How do I stop Mongo 3.x.x and 4.x.x from complaining about WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'?
A default installation of MongoDB on Ubuntu 18.04 gives the following warning about transparent hugepage defrag. How to deal with it?
init0
- 101
- 6