# Kernel

**URL:** https://linux-tips.com/c/kernel/9.md

[Latest](https://linux-tips.com/latest.md) · [Categories](https://linux-tips.com/categories.md)

---

## [About the Kernel category](https://linux-tips.com/t/about-the-kernel-category/15)

<div class="topic-metadata">

**Author:** [@demirten](https://linux-tips.com/u/demirten)\
**Replies:** 0

</div>

Kernel compilation, tuning and debugging

---

## [Running centos6 chroots under newer Linux kernels](https://linux-tips.com/t/running-centos6-chroots-under-newer-linux-kernels/827)

<div class="topic-metadata">

**Author:** [@redsector](https://linux-tips.com/u/redsector)\
**Replies:** 0\
**Last updated:** [February 12, 2021, 11:54am UTC](https://linux-tips.com/t/running-centos6-chroots-under-newer-linux-kernels/827 "2021-02-12T11:54:10Z")

</div>

Today I realized that I couldn’t execute shell in a centos6 chroot environment while using Debian 11 and kernel 5.10: $ sudo chroot centos /bin/sh Segmentation fault While some commands like ps working properly, most o…

---

## [How to strip Linux kernel modules?](https://linux-tips.com/t/how-to-strip-linux-kernel-modules/472)

<div class="topic-metadata">

**Author:** [@sputnik](https://linux-tips.com/u/sputnik)\
**Replies:** 1\
**Last updated:** [January 28, 2017, 9:20pm UTC](https://linux-tips.com/t/how-to-strip-linux-kernel-modules/472 "2017-01-28T21:20:10Z")

</div>

We have a kernel module file named gpdrv.ko which is a custom driver and we don't have the source codes. It's file size about 120 KB, after stripping, module size decreases as low as 10 KB. But when we try to insert …

---

## [What is the best IDE for Linux kernel development?](https://linux-tips.com/t/what-is-the-best-ide-for-linux-kernel-development/388)

<div class="topic-metadata">

**Author:** [@MisterNo](https://linux-tips.com/u/MisterNo)\
**Replies:** 1\
**Last updated:** [August 21, 2016, 9:29pm UTC](https://linux-tips.com/t/what-is-the-best-ide-for-linux-kernel-development/388 "2016-08-21T21:29:05Z")

</div>

I'm new on kernel development and it is quite difficult job to work on a big C project like Linux kernel. I already used vim+ctags+nerdtree, anjuta and eclipse but it will be good to hear about some other alternatives. …

---

## [Learning all of the available system calls](https://linux-tips.com/t/learning-all-of-the-available-system-calls/214)

<div class="topic-metadata">

**Author:** [@mike](https://linux-tips.com/u/mike)\
**Replies:** 0\
**Last updated:** [August 3, 2015, 4:39pm UTC](https://linux-tips.com/t/learning-all-of-the-available-system-calls/214 "2015-08-03T16:39:39Z")

</div>

You can use following command to learn details of all the available system calls for Linux: man syscalls You can also look at the syscall manual in Linux Programmer's Manual with: man 2 syscall (Reference: http://w…

---

## [Clearing caches from memory](https://linux-tips.com/t/clearing-caches-from-memory/202)

<div class="topic-metadata">

**Author:** [@demirten](https://linux-tips.com/u/demirten)\
**Replies:** 0\
**Last updated:** [August 3, 2015, 4:14pm UTC](https://linux-tips.com/t/clearing-caches-from-memory/202 "2015-08-03T16:14:37Z")

</div>

From version 2.6.16 Linux kernel has a tunable parameter named /proc/sys/vm/drop\_caches If you want to force to clear pagecaches from memory use: echo 1 \> /proc/sys/vm/drop\_caches If you want to clear dentry and ino…

---

## [Working with Linux kernel oops messages](https://linux-tips.com/t/working-with-linux-kernel-oops-messages/156)

<div class="topic-metadata">

**Author:** [@demirten](https://linux-tips.com/u/demirten)\
**Replies:** 0\
**Last updated:** [August 3, 2015, 1:21pm UTC](https://linux-tips.com/t/working-with-linux-kernel-oops-messages/156 "2015-08-03T13:21:27Z")

</div>

Even if you're not a kernel hacker, sometimes you may want to learn that which sections of the kernel code results the oops messages. To do this, you have to learn ksymoops utility: ksymoops -v vmlinux -m System.map W…

---

## [Improving ext3 filesystem performance with directory indexing](https://linux-tips.com/t/improving-ext3-filesystem-performance-with-directory-indexing/152)

<div class="topic-metadata">

**Author:** [@demirten](https://linux-tips.com/u/demirten)\
**Replies:** 0\
**Last updated:** [August 3, 2015, 12:52pm UTC](https://linux-tips.com/t/improving-ext3-filesystem-performance-with-directory-indexing/152 "2015-08-03T12:52:41Z")

</div>

Directory indexing feature improves file access time in large directories or directories containing many files by using hashed binary trees to store the directory information. It is a good way to enable it for example on…

---

## [Decompressing vmlinuz kernel image](https://linux-tips.com/t/decompressing-vmlinuz-kernel-image/121)

<div class="topic-metadata">

**Author:** [@Greg](https://linux-tips.com/u/Greg)\
**Replies:** 1\
**Last updated:** [June 14, 2015, 9:17pm UTC](https://linux-tips.com/t/decompressing-vmlinuz-kernel-image/121 "2015-06-14T21:17:13Z")

</div>

I want to learn that why I can not decompress compressed kernel image made with make bzImage. If we look at the vmlinuz with file, it gives following output: $ file vmlinuz-4.0.0-1-amd64 vmlinuz-4.0.0-1-amd64: Linux k…

---

## [Strace attach problem](https://linux-tips.com/t/strace-attach-problem/99)

<div class="topic-metadata">

**Author:** [@Greg](https://linux-tips.com/u/Greg)\
**Replies:** 1\
**Last updated:** [March 3, 2015, 4:11pm UTC](https://linux-tips.com/t/strace-attach-problem/99 "2015-03-03T16:11:41Z")

</div>

I'm using strace regularly and I'm a very big fan of this little utility. But I can not use strace to trace my program in one of the server which I'm connecting remotely. It gives following error: $ strace -p 3184 st…

---

## [What is kernel soft lockup?](https://linux-tips.com/t/what-is-kernel-soft-lockup/78)

<div class="topic-metadata">

**Author:** [@RaskoX](https://linux-tips.com/u/RaskoX)\
**Replies:** 1\
**Last updated:** [February 20, 2015, 3:07pm UTC](https://linux-tips.com/t/what-is-kernel-soft-lockup/78 "2015-02-20T15:07:51Z")

</div>

I'm continuously getting errors from kernel on one of the my system as below: BUG: soft lockup - CPU#0 stuck for 15s! ... BUG: soft lockup - CPU#2 stuck for 24s! As you can see, cpu id and duration changes but problem…

---

## [Booting kernel without SMP support](https://linux-tips.com/t/booting-kernel-without-smp-support/79)

<div class="topic-metadata">

**Author:** [@Greg](https://linux-tips.com/u/Greg)\
**Replies:** 1\
**Last updated:** [February 19, 2015, 2:40pm UTC](https://linux-tips.com/t/booting-kernel-without-smp-support/79 "2015-02-19T14:40:23Z")

</div>

We have a program which opens a lot of threads make some time critical calculations. I wonder about SMP scheduling effect. It is possible to boot Linux kernel with nosmp or maxcpus=0 argument to disable multiple processi…

---

## [Getting stats for icmp stack](https://linux-tips.com/t/getting-stats-for-icmp-stack/54)

<div class="topic-metadata">

**Author:** [@redsector](https://linux-tips.com/u/redsector)\
**Replies:** 1\
**Last updated:** [December 20, 2014, 1:08am UTC](https://linux-tips.com/t/getting-stats-for-icmp-stack/54 "2014-12-20T01:08:03Z")

</div>

I wrote a simple program which sends high amount of icmp packets to local network. But it seems that some of the packets (nearly about %20) getting lost on the target site. Is it possible to get icmp stack info from kern…

---

## [Putting custom message to kernel printk buffer](https://linux-tips.com/t/putting-custom-message-to-kernel-printk-buffer/53)

<div class="topic-metadata">

**Author:** [@redsector](https://linux-tips.com/u/redsector)\
**Replies:** 1\
**Last updated:** [December 20, 2014, 12:46am UTC](https://linux-tips.com/t/putting-custom-message-to-kernel-printk-buffer/53 "2014-12-20T00:46:44Z")

</div>

We have servers with high uptime values. I can see several errors and warnings when I look at the kernel message buffer with dmesg command. Newer kernels supports printing monolithic time information for every lines in k…
