Everything about UNIX kernels: development, configuration, compilation, design, etc.

learn more… | top users | synonyms

12
votes
1answer
2k views

Why does Red Hat Linux use such an old kernel?

Why does RHEL (and its derivatives) use such an old kernel? It uses 2.6.32-xxx, which seems old to me. How do they support newer hardware with that kernel? As far as I know these kind of distributions ...
7
votes
2answers
2k views

How can you determine which process scheduler is being used? [duplicate]

I.e. is it the O(1) scheduler, the CFS scheduler, or an older one?
5
votes
1answer
2k views

Silent booting Linux from u-boot

For security reasons I have to boot Linux from u-boot with all output hidden (silently) until a password is entered. I've configured uBoot to do this correctly using the CONFIG_AUTOBOOT_KEYED macro ...
4
votes
2answers
2k views

How to know if a network interface is tap, tun, bridge or physical?

As far as i know, there are 4 main types of network interfaces in linux: tun, tap, bridge and physical. When i'm doing sys admin on machines running KVM, i usually come accross tap, bridge and ...
17
votes
5answers
2k views

Where does uname get its information from?

Where does uname really get its information from? I figure this is something that should be straightforward. Unfortunately, I can't find any header containing just that information. Say someone ...
9
votes
1answer
6k views

Buffer size for capturing packets in kernel space?

Going through the man page of tcpdump, it seems kernel can drop the packets if the buffer is full. I was wondering if: that size is configurable and/or where can I see the size for my distro? From ...
8
votes
1answer
1k views

Blocking kernel updates with dpkg

I'd like to block all distribution-shipped kernel updates due to a nasty thing that recently happened to me. (I'm on a Ubuntu 12.04 amd64 derivative.) I'd like to block all updates to installed ...
7
votes
3answers
3k views

How to read the in-memory (kernel) partition table of /dev/sda?

I accidentally overwrote my /dev/sda partition table with GParted (full story on AskUbuntu). Since I haven't rebooted yet and my filesystem is still perfectly usable, I was told I might be able to ...
6
votes
2answers
7k views

yum installs kernel-devel different from my kernel version

I am attempting to install the VMWare player in Fedora 19. I am running into the problem that multiple users have had where VMware player cannot find the kernel headers. I have installed the ...
6
votes
2answers
325 views

what's the format spec for `ss -D `?

Background of the question: I am trying to sum up the total bandwidth, but ss -i cleverly converted numbers to more readable format like Kbps/s or Mbps/s, which is not accurate. So does ss -o with ...
6
votes
4answers
2k views

How many cores can Linux kernel handle?

I'm interested in theoretical limits, perhaps with examples of systems having huge numbers of CPU's.
5
votes
1answer
10k views

What is kernel ip forwarding?

I have seen on many blogs, using this command to enable IP forwarding while using many network security/sniffing tools on linux echo 1 > /proc/sys/net/ipv4/ip_forward Can anyone explain me in ...
5
votes
3answers
3k views

Prevent claiming of novelty usb device by usbhid so I can control it with libusb?

I have a USB rocket launcher that I wish to experiment with through libusb. However, libusb cannot claim the interface; presumably because the output of usb-devices lists 'usbhid' as the driver for ...
9
votes
1answer
3k views

Isolating cause of higher CPU usage on RHEL 6 vs RHEL 5

I'm currently looking to move our system from RHEL 5 to RHEL 6, but I've run into a snag with unexpectedly high CPU usage on the RHEL 6 machines. It appears that this may be due at least in some part ...
7
votes
2answers
7k views

How can I know which IRQ is responsible of high CPU usage

I've moved a server from one mainboard to another due a disk controller failure. Since then I've noticed that constantly a 25% of one of the cores goes always to IRQ however I haven't managed myself ...
6
votes
1answer
195 views

Can you explain the entropy estimate used in random.c

/dev/random uses the timings of kernel interupts to add to the entropy pool. The amount of entropy in the pool is tracked in a variable named entropy_count. Here is the relevant snippet of code from ...
5
votes
2answers
542 views

My process was killed but I cannot understand the kernel notice

I have a custom application running on an embedded x86 setup (built using buildroot and uClibc). The application has been running fine but this morning when I returned to work I discovered my process ...
5
votes
3answers
1k views

How can I tweak the kernel for total swap out?

I would like to deploy the following swapping policy: By default all pages in memory should also be in swap space. When a page in memory is changed (i.e. dirty), the page should be written out as ...
4
votes
2answers
2k views

Can I detect if my custom made kernel was built with module support?

I have been provided with a vendor supplied minimal linux installation. From an answer to a previous question I discovered that it is possible to build a kernel with or without module support. I have ...
4
votes
2answers
447 views

Is it normal that a restart is required to mount USB after a kernel upgrade?

Sometimes I see the Linux kernel being mentioned in the list of upgrades, when running pacman -Syu (updating my packages in Arch Linux). Whenever this happens, after installation of the packages, I ...
3
votes
1answer
2k views

usb kernel module does not load on demand but works fine with insmod and modprobe from the shell

I have a USB Linux Kernel module that compiles and builds. Running insmod loads my module and dmseg and tail -f /var/log/debug shows me it works as expected. Running depmod -a then modprobe from the ...
3
votes
3answers
145 views

API with no system calls

The book 'Understanding Linux Kernel' says that 'for something abstract such as math functions, there may be no reason to make system calls'. Can any one please explain how is a system call not ...
3
votes
3answers
691 views

Rings and run levels

The question stated below might not be technically correct(misconception) so it would be appreciable if misconception is also addressed. Which ring level do the different *nix run levels operate in? ...
3
votes
2answers
9k views

what is pts/0 and (:0.0) in linux by type who am i

When I type the command: [root@degeneration Desktop]# who am i root pts/0 2013-04-12 15:08 (:0.0) What is pts/0 and what is meant by (:0.0)?
3
votes
1answer
2k views

Debian 6.0 system with 2.6.39 kernel dropping packets, sandy bridge hardware

I recently migrated an existing Debian system to new hardware, a core i3 chip running on an intel sandy bridge motherboard. I’m experiencing a very strange problem; when I ping my router, about 50% of ...
3
votes
2answers
11k views

Command to install linux headers fails

I need to install my linux headers for an Nvidia driver install. But I get an error when doing so: peter@peter-deb:~$ sudo apt-get install linux-headers-$(uname -r) Reading package lists... Done ...
2
votes
2answers
2k views

How do I cause a watchdog reset of my embedded Linux device

Is there a command like vi > out vi | out That I could use to cause a watchdog reset of my embedded linux device?
2
votes
1answer
111 views

Is there any method to mount a block of memory as a filesystem in linux?

I have a question,in linux, is there any method to mount a block of memory as a filesystem? For example, in X86 architecture, when power on, I reserve a block of memory about 8 Mbytes, and then when ...
0
votes
2answers
163 views

Error Installinig Kernel on Centos (from Source)

I am running GNU/Linux (Centos 6) on kernel 2.6.32-431.17.1.el6.x86_64. I am trying to update the kernel to 3.2.61. I performed the following steps inside the 3.2.61 folder structure: make ...
14
votes
3answers
2k views

Why don't you need to update drivers? (Or do you?)

In my life I've not once updated drivers on any of my Linux systems, though they have all been desktops. A friend was asking me why one does not need to update Linux drivers and I found myself unable ...
8
votes
2answers
8k views

How to include local header files in linux kernel module

Say I have a module mymod with source files as follows: src/mod/mymod.c src/inc/mymod.h I try to include mymod.h as follows #include <mymod.h> My makefile contains EXTRA_CFLAGS= ...
8
votes
6answers
2k views

How to find information about the system/machine in Unix?

I have always found it difficult to find information about the system itself in Unix, whether it be Which OS I am using (version number and all, to compare it with the latest available builds)? ...
7
votes
2answers
1k views

An oom killer thats baffling me

I am not able to understand why would kernel issue this oom killer when I see enough memory is available: Also why are there so many kernel cache pages allocated? I say enough memory is available ...
6
votes
1answer
883 views

User Kernel split in 64bit Linux

What is the default user/kernel split in the 64bit linux ? I read Documentation/x86_64/mm.txt (which someone pointed out), but I could not make out. Can somebody provide a direct answer (something ...
5
votes
2answers
92 views

Making a process read a different file for the same filename

I have an application that reads a file. Let's call it processname and the file ~/.configuration. When processname runs it always reads ~/.configuration and can't be configured differently. There are ...
5
votes
3answers
3k views

ACPI problem with recent kernels

In recent versions of popular Linux distributions (Ubuntu, Fedora, Mint, Debian) I always have to put acpi=off into the kernel parameter list before I want to boot the computer. This happens to both ...
5
votes
2answers
10k views

What is the difference between Non-preemptive, Preemptive and Selective Preemptive Kernel?

What is the difference between a "Non-preemptive", "Preemptive" and "Selective Preemptive" Kernel? Hope someone can shed some light into this.
5
votes
2answers
1k views

ZONE_NORMAL and it's association with Kernel/User-pages?

Above is presented a case where I have only 512 MB of physical memory. What I have read up so far, is that ZONE_NORMAL is mapped to the kernel virtual address space as shown. Essentially I have a ...
4
votes
1answer
135 views

why would there be a load of 5 if there are zero processes in the runq?

This doesn't make sense to me, why would there be a load of 5 if there are zero processes in the runq? 12:00:01 AM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 12:05:01 AM 0 708 ...
4
votes
2answers
1k views

Installing OpenVPN to replace Cisco VPN because Cisco will not work with the kernel I am on or downgrade instead?

I had difficulties installing Cisco5.0 VPN on my Ubuntu 10.04 LTS. I asked for assistance in this question: link to previous question. The answer is that this Cisco program will run on only older ...
4
votes
4answers
1k views

Stripped down Kernel for a Laptop

I am a Linux noob, but I am willing to learn. My immediate objective is to compile a small kernel for my laptop without sacrificing usability. I am familiar with the kernel compilation steps (don't ...
4
votes
1answer
311 views

NetBSD 5.1 NDIS Kernel Compile Error

I have an old Toshiba Satellite 4015CDT, with Pentium II MMX, 32MB RAM, 4GB HDD. It also has one USB 1.0 port, parallel and serial ports, a 3.5" floppy drive and a CD-ROM drive (almost dead). I've ...
4
votes
3answers
1k views

Recompile Kernel to Change Stack Size

I need to recompile my kernel on RHEL WS5 with only two changes. Change stack size from 4k to 8k Limit usable memory to 4096. How do I recompile the kernel without changing anything else but ...
3
votes
3answers
777 views

how is page size determined in virtual address space?

Linux uses a virtual memory system where all of the addresses are virtual addresses and not physical addresses. These virtual addresses are converted into physical addresses by the processor. To ...
3
votes
3answers
159 views

Is it mandatory to have a file system and MMU in Linux? [closed]

Suppose I do not need a filesystem and I have only applications where data reloading may not be required - so MMU may be redundant. Can I remove these two items from Linux, and boot the OS ...
3
votes
1answer
248 views

What is the maximum allowed number of TTY, is it defined anywhere in kernel headers?

What's the maximum allowed number of TTYs? I found pty.max, but is there anything similar for TTYs? Or is it defined as a fixed value in kernel headers, I couldn't find that
3
votes
2answers
227 views

Why do people call Linux a kernel rather than an OS?

Why do people refer to Linux as a kernel rather than an operating system? To the best of my knowledge, the kernel is one part of the operating system.
2
votes
1answer
736 views

LinuxMint15: Suspend to RAM not working

I just installed LinuxMint15 on an Acer Aspire V3-771G-73638G500Maii. Hibernation works. But suspend to RAM does not. When clicking suspend: After a few seconds the screen goes grey and then off. ...
2
votes
1answer
728 views

Build kernel in one machine, install in another

I want to build my Linux kernel on my host and use it in my VWware virtual machine. They both use the same Ubuntu kernel now. On my Host, I do make and make configure. Then, what files should I copy ...
2
votes
1answer
6k views

/lib/modules/2.6.37.6/build missing in linux puppy? what should I do?

I am new to linux as of yesterday. I'm using linux puppy to try to get the most out of a 10 year old, slow laptop. I installed it fine, no problems there, but as soon as I try to use my usb dongle's ...