Questions tagged [linux-kernel]
The Linux kernel is the operating system kernel used by the Linux family of Unix-like operating systems. It is one of the most prominent examples of free and open source software.
601 questions
62
votes
12
answers
269k
views
How do I make Linux recognize a new SATA /dev/sda drive I hot swapped in without rebooting?
Hot swapping out a failed SATA /dev/sda drive worked fine, but when I went to swap in a new drive, it wasn't recognized:
[root@fs-2 ~]# tail -18 /var/log/messages
May 5 16:54:35 fs-2 kernel: ata1: ...
47
votes
2
answers
65k
views
Effects of configuring vm.overcommit_memory
My VPS web server running on CentOS 5.4 (Linux kernel 2.6.16.33-xenU) irregularly (like once a month give or take a few weeks) becomes unresponsive due to oom-killer kicking in. Monitoring of the ...
43
votes
5
answers
14k
views
Intentionally cause an I/O error in Linux?
Is there anyway, with Linux, to purposely cause a block device to report an I/O error, or possibly simulate one for testing purposes?
37
votes
5
answers
14k
views
What are the performance implications for millions of files in a modern file system?
Let's say we're using ext4 (with dir_index enabled) to host around 3M files (with an average of 750KB size) and we need to decide what folder scheme we're going to use.
In the first solution, we ...
25
votes
9
answers
24k
views
Maximum number of files in one ext3 directory while still getting acceptable performance?
I have an application writing to an ext3 directory which over time has grown to roughly three million files. Needless to say, reading the file listing of this directory is unbearably slow.
I don't ...
23
votes
4
answers
33k
views
Linux memory fragmentation
Is there a way to detect memory fragmentation on Linux? This is because on some long running servers I have noticed performance degradation and only after I restart process I see better performance. I ...
20
votes
9
answers
67k
views
kswapd often uses 100% CPU when swap is in use
Most of the time when my computer starts to need swap, I see a massive spike in CPU usage (kswapd0 is consistently using 99%-100% CPU). According to top, the time is spent in sy (system/kernel) not wa ...
20
votes
2
answers
6k
views
Why CPU spent time on IO(wa)?
I know wa (in top) measures the CPU time on waiting for I/O. Many articles say that.
But I am confused that, based on 2 knowledge points:
if a process uses a system call to read disk, the process is ...
20
votes
1
answer
29k
views
Difference between net.core.rmem_max and net.ipv4.tcp_rmem
What's the difference between net.core.rmem_max and the third value of net.ipv4.tcp_rmem? Which has the higher priority for tcp connections?
For below two examples, what's the max buffer for tcp ...
18
votes
2
answers
4k
views
Cause of page fragmentation on "large" server with xfs, 20 disks and Ceph
Any insight from someone with a bit of experience in the linux IO system would be helpful. Here is my story:
Recently brought up a cluster of six Dell PowerEdge rx720xds to serve files via Ceph. ...
15
votes
4
answers
44k
views
In CentOS 6.x, how can I upgrade to Kernel 3.4?
I have a server running CentOS 6.2 with kernel version 2.6.32, but I need to increase my application Performance.
The Kernel Version 3.4 has x32abi which can improve the performance so i want to ...
15
votes
3
answers
29k
views
How can I tune the initial TCP retransmit timeout?
The initial TCP RTO value of 3s is too long for most LAN-based applications. How can I tune it lower? Is there a sysctl?
15
votes
3
answers
20k
views
1000 HZ linux kernel necessary if I have tickless and high resolution timer?
I am trying to improve performance on my server. I have a few processes that need low jitter (less than 10ms variance).
I have a load average of 4 maximum on an i7-920 (4 physical cores, 8 with HT). ...
15
votes
2
answers
3k
views
Linux kernel detecting wrong processor frequency
After a cold boot of a 6.0.8 Debian server (HP ProLiant), ntpd played havoc with system time: offset and jitter with respect to the usual and reliable reference time servers growing without limit. (...
14
votes
2
answers
62k
views
failed to create fsnotify watcher: too many open files
I received this error while trying to tail the log of a Kubernetes pod.
failed to create fsnotify watcher: too many open files