Tag Info

New answers tagged

0

The kernel initialization is only around some seconds. Most of the boot time is the starting and the initialization of the different demons and system settings. Manipulating the kernel won't help too much. Some ways to make this faster: As I understand, your software is essentially a daemon. Set up to start it as early as possible - because it requires ...


0

Self-answer: I was right in checking the temperature from the BIOS, but wrong in giving it little importance. The error in question was indeed caused by the CPU overheating, it seems. In fact, when I reduced the target temperature for the case fan to reach (by 5 °C), the fan of course started working harder and the kernel panic didn't occur again in weeks.


1

The 80386 supports paging in addition to memory segmentation while the 286 supports only memory segmentation. Linux heavily depends on paging support i.e., uses a flat memory scheme which basically sets all the segment registers to 0 and uses paging to manage applications. In order to port Linux to the 286, the fundamental memory manager needs a complete ...


1

Most laptops require pressing Fn to get the SysRq key. Pressing Fn usually doesn't affect the Alt key (at least the left one) but may affect the letter that you press after SysRq. Fortunately, you don't need to press SysRq and the third key together, it's enough to hold Alt down. The following sequence works on all the laptops I've seen: Press and hold ...


0

You will automatically get a armv7hf kernel, if you compile it on a running armv7hf-machine. Try file <kernel-binary> this will tell you what type the kernel is. The hard-fload (hf) thing is selected somewhere in "target architecture" subtree, if i remember that correctly. Other than that you have the option of building your own toolchain on a host ...


-2

In get_fs(), fs is for free segment.


1

Downgrades are a lot more dangerous than upgrades. You would probably have to switch repository to older version, remove some packages and run dist-upgrade. However, from my limited experience of downgrading on Debian, I'd say it's a lot easier to just backup your data, and then install your programs again - especially if you don't know how to fix things. ...


1

cd is a builtin of bash. TAB completion is a controlled by bash options, you can find various completion script in /usr/share/bash-completion/bash_completion and /etc/bash_completion.d. cd's completion method is defined in the former one. As cd only works on directory, it's natural to only list available directory. Everything is file in linux.


16

The "Everything is a file" phrase defines the architecture of the operating system. It means that everything in the system from processes, files, directories, sockets, pipes, ... is represented by a file descriptor abstracted over the virtual filesystem layer in the kernel. The virtual filesytem is an interface provided by the kernel. Hence the phrase was ...


3

Your shell is smart enough to know that cd will not work with file parameters. So when you hit tab it only shows things in that directory that will work with cd.


0

Here's a little script I wrote: #!/bin/bash for f in /sys/class/net/*; do dev=$(basename $f) driver=$(readlink $f/device/driver/module) if [ $driver ]; then driver=$(basename $driver) fi addr=$(cat $f/address) operstate=$(cat $f/operstate) printf "%10s [%s]: %10s (%s)\n" "$dev" "$addr" "$driver" "$operstate" done Sample ...


0

One way I can think of is to access gmane.linux.drivers.video-input-infrastructure mailing list using Gmane NNTP interface with a client and download all messages. For example, you can use a command-line client called slrn. There are also many GUI clients available. Many of them are capable of downloading multiple messages in mbox format.


1

Probably it depends on the video mode and zero page (struct bootparam, documented here, it also includes struct screen_info) setup prepared by a bootloader (GRUB) and BIOS. bootparam is passed to decompress_kernel() as the first argument. The actual function of debug_putstr() is __putstr() (Note that it's enabled only when CONFIG_X86_VERBOSE_BOOTUP is ...


1

Taken from GNU's website:     "The GNU system contains all of the official GNU software packages, and also includes non-GNU free software, notably TeX and the X Window System. Also, the GNU system is not a single static set of programs; users and distributors may select different packages according to their needs and desires. The result ...


1

You need to use the "old-releases" archive for Natty Narwhal; replace archive.linux.duke.edu with old-releases.ubuntu.com in your sources.list file, then run sudo apt-get update, and you should be able to install the packages. As Huygens suggests though, you should really upgrade to a supported version of Ubuntu.


1

Natty Narwhal is no longer supported by Ubuntu. So you can't use apt-get to install ncurses. You have the following choices: upgrade to a supported version of Ununtu. But as your version is no longer supported, you can't easily upgrade in-place but would rather need to install over. So backup!!! install ncurses from sources. Get the source and compile ...


6

There is no original GNU/Linux operating system. Linux is the kernel and GNU is the operating system. A Linux distribution is created when users combine the Linux kernel with the essential tools that run an operating system. Some History in a Nutshell GNU set out to make a free UNIX-like operating system in 1983. By the early 1990's, GNU had all of the ...


0

The "Original" Linux "Linux" is the kernel, licensed under the GNU General Public License. The GNU part of GNU/Linux can generally be though of as the userland tools such as coreutils, although not all distributions are limited to GNU software for their userland. Wikipedia says: Linus Torvalds developed the Linux kernel and distributed its first ...


4

You might also be interested in looking at what is called 'Free GNU/Linux distributions', the distributions that are endorsed by GNU community and that completely follow the GNU Public License. http://www.gnu.org/distros/free-distros.html


2

Linux is the kernel. This connects you to the hardware of your system. GNU (GNU is Not Unix). Here are the essential libre tools you're interested in. After combining the two parts one gets a "distribution" or "flavor" of Linux, aka GNU/Linux to some. Perhaps one approximation of what you seek is the GNU/Hurd. https://www.gnu.org/software/hurd/hurd.html ...


15

Drivers are maintained in-kernel so when a kernel change requires a global search-and-replace (or search-and-hand-modify) for all users of a function, it gets done by the person making the change. Having your driver updated by people making API changes is a very nice advantage, instead of having to do it yourself when it doesn't compile on a more recent ...


6

The tradeoffs of monolithic kernels were debated between Tananbaum and Torvalds in public from the very beginning. If you don't need to cross into userspace for everything, then the interface to the kernel can be simpler. If the kernel is monolithic, then it can be more optimized (and more messy!) internally. We have had modules as a compromise for ...


3

Regarding user names, the kernel don't need (and don't care about) them, since it is dealing only with numerical user ids (the uid 0, a.k.a. root, may have special status). See credentials(7) & capabilities(7) Conversion from user names to user ids is done by libc functions like getpwnam(3). The libc may access files (notably /etc/passwd) for that, see ...


3

In general, a Linux kernel doesn't open files on its own behalf (rather than on behalf of processes). Even /sbin/init (or the 'init' program specified on the kernel command line) is exec()ed by a process (process 1 is constructed directly from an image inside the kernel, IIRC). At one time, kernel modules requiring firmware would directly open the firmware ...


37

The answers so far seem to be "yes there is lots of code" and nobody is tackling the question with the most logical answer: 15M+? SO WHAT? What does 15M lines of source code have to do with the price of fish? What makes this so unimaginable? Linux clearly does lots. Lots more than anything else... But some of your points show you don't respect what's ...


13

tinyconfig bubble graph svg (fiddle) shell script to create the json from the kernel build, use with http://bl.ocks.org/mbostock/4063269 Edit: turned out unifdef have some limitation (-I is ignored and -include unsupported, the latter is used to include the generated configuration header) at this point using cat doesn't change much: 274692 total # ...


38

For anyone curious, here's the linecount breakdown for the GitHub mirror: ============================================= Item Lines % ============================================= ./usr 845 0.0042 ./init 5,739 0.0283 ./samples 8,758 0.0432 ./ipc 8,926 ...


58

According to cloc run against 3.13, Linux is about 12 million lines of code. 7 million LOC in drivers/ 2 million LOC in arch/ only 139 thousand LOC in kernel/ lsmod | wc on my Debian laptop shows 158 modules loaded at runtime, so dynamically loading modules is a well-used way of supporting hardware. The robust configuration system (e.g. make menuconfig) ...


1

wait4 is a syscall indicating the process is waiting for one of his child termination. This may points some issue with the signal handling. A bit brutal, but you may try to kill the hierarchy of the app : kill -15 -$YourRedisPID. The - before the PID means "the PID and its children". As it seems to be waiting for a child termination, it may unlock it. If ...


0

It can be done in real mode by means of BIOS int 0x15, 0x87 function. GDT must be filled appropriately for source and destination. cx - number of bytes to move. push edx push es xor ax, ax mov es, ax mov ah, 0x87 mov si, gdt int 0x15 jc error pop es pop edx ret gdt: times 16 db 0 dw 0xffff ...


0

10 minutes is very much long-term as far as Linux's scheduler is concerned. Time slices are something like 10ms. When you're looking at CPU usage percentages, keep in mind that top adds up the per-thread usage of multi-threaded processes. So a 10-thread process that has each thread getting 10% active time will show up as using 100% of a CPU. Linux's ...


4

The nice value will not tell you anything about the actual cpu load, a process produces. Nice-ness is just what you would think: the way, a process behaves under certain work loads. To be more exact: if a process with a high nice-value (==lower scheduling propability) is scheduled, it WILL hold the cpu, until a process with lower nice-value and/or ...


2

A lot of processes in your system are just sitting and waiting for something to happen. This is what most server processors or daemons do (e.g. ssh, mail, X). If you are working in a word processor, it just sits and waits until you click somewhere or type something. Most of the time the process is not scheduled and uses a very low amount of CPU time. You ...


0

The process abrt-watch-log takes strings to watch for and then runs a command. So what you're seeing as an error is just the strings to look for in /var/log/messages, which if found, is then sent to /usr/bin/abrt-dump-oops. $ man abrt-watch-log: NAME abrt-watch-log - Watch log file and run command when it grows or is replaced SYNOPSIS ...


-2

Please, make sure you have the rights to kill the process. That is the only way, supposing the error is not kernel-related, a kill -9 would not work. Read more on kill topic here: What if 'kill -9' does not work?


0

We have a similar issue with RH6 kernel version 2.6.32-504. We've been rolling back to 2.6.32-431, and it seems to resolve the issue on the ATTO H680. That's probably an absurd solution for your 3.5.4 kernel, but I thought it may point you in the right direction. In my research, I found this article (on ATTO's web site), which says, ATTO 6Gb ESAS HBA ...


0

loglevel=7 will include loglevels 0-6. Source: From the link you posted: "The new level is specified as an integer value between 1 and 8, inclusive. If it is set to 1, only messages of level 0 (KERN_EMERG) reach the console; if it is set to 8, all messages, including debugging ones, are displayed."


0

fbcon works with a KMS backing device, there's no difficulty here at all. I would reconsider the accuracy of your anonymous source. They may have been thinking of kmscon. If you're actually using kmscon then it has its own docs / manual page which will answer this question for you. Note kmscon was a bit of an experiment by the author. If we're looking ...



Top 50 recent answers are included