Language Selection

English French German Italian Portuguese Spanish

Understanding /proc: Part 2

Filed under

As it was shown in the first installment of the Understanding /proc series, the /proc filesystem can be extremely useful when it comes to finding out about the processes running on your Linux system (which might have something to do with why the kernel developers decided to name it 'proc'). But /proc is also handy when it comes to learning about the devices on your system. While it is currently being deprecated in favor of the /sys filesystem for device information, /proc can still provide some valuable insight as to what you have attached to (or inside of) your computer.

Before we continue, I think a little clarification is in order. Just what do I mean by a device?

Some would say that a device is anything with a driver. While this would include the expected physical devices like a USB controller, hard drive, or a network card, there are some objects with drivers that aren't physical devices like the null device (/dev/null) or the loopback device ('lo'). Others would argue that a device is only a physical device that you can take, pick apart, or basically just a tangible object.

For the purposes of this article, I choose to go with the latter definition, and not include the so-called "virtual" devices. These will be covered in the fourth and final installment of this series, covering miscellaneous things that one can do with /proc, as well as a few practical 'real-world' scenarios.

Full Story.

More in Tux Machines

Let's Pay for Open Source with a Closed-Source Software Levy

This column has often explored ways in which some of the key ideas underlying free software and open source are being applied in other fields. But that equivalence can flow in both directions: developments in fields outside the digital world may well have useful lessons for computing. A case in point is a fascinating post by James Love, Director of Knowledge Ecology International (KEI), a non-governmental organisation concerned with public health and other important issues. It is called "The value of an open source dividend", and is a discussion of the problems the world of pharma faces because of the distorting effect of patents - problems it shares with the world of computing... Read more

Features Of The Linux 3.18 Kernel

With Linux 3.18-rc1 arriving one week early I didn't have a chance to write a feature overview of Linux 3.18 prior to this first development release that marked the close of the merge window. For those that didn't stay up to date with our dozens of Linux 3.18 kernel articles about changes and new features, here's a concise overview. Read more

Norway closes its open source resource centre

The government of Norway will no longer fund its open source resource centre, Friprog. Activities are wound down and the centre will be closed at the end of the year, Friprog reports. The GoOpen conference, planned for last September but postponed to May 2015, is now cancelled. Read more

Automatic Feedback Directed Optimizer Merged Into GCC

The latest merged feature for next year's GCC 5 compiler release is AutoFDO support! AutoFDO is the Automatic Feedback Directed Optimizer. AutoFDO relies on the Linux kernel's perf framework for profiling with performance counters. AutoFDO interprets the perf output and attempts to use the FDO infrastructure to produce better optimized code generation. AutoFDO according to its Google engineers is said to be noticeably faster than traditional FDO for GCC. Read more