Penguin
Note: You are viewing an old revision of this page. View the current version.

sysfs is a pseudo FileSystem that the LinuxKernel uses to export runtime configuration and statistics from drivers into userspace. By LSB convention it's mounted on /sys.

Note that some kernel options are still configured through /proc/sys (or equivalently using sysctl, which is also called at boot time to read /etc/sysctl.conf). A general rule of thumb is that if the kernel option is related directly to some piece of hardware, it's probably configured via sysfs (eg. NIC settings such as MTU), and if it has to do with other kernel behaviour (eg. network Protocol settings), it'll be accessable via /proc/sys. Other examples for things you tweak via sysfs include RAID, SCSI and other BlockDevice configuration such as IO schedulers.

The sysfsutils contain a library and a CommandLine tool called systool to explore /sys and display and alter current settings. The corresponding Debian Package also uses this tool to provide boot time configuration of SysFs values through the /etc/sysfs.conf file.


CategorySystemAdministration