Network Parameters in proc file system (1)

Source: Internet
Author: User
Article Title: network parameters in the proc file system (1 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Permalink

What is a proc file system?

The proc file system is a pseudo-file system that only exists in the memory and does not occupy the external storage space. It provides interfaces for accessing system kernel data in the form of a file system. Users and applications can obtain system information through proc and change certain kernel parameters. Because system information, such as processes, is dynamically changed, when a user or application reads the proc file, the proc file system dynamically reads the required information from the system kernel and submits it. Its directory structure is as follows:

Directory Name directory content

Apm Advanced Power Management Information

Cmdline kernel command line

Cpuinfo Cpu Information

Devices available for Devices (Block Devices/character Devices)

Dma channels used by DMA

File systems supported by Filesystems

Interrupts interruption

Ioports I/O port usage

Core impressions of Kcore

Kmsg kernel message

Ksyms kernel symbol table

Loadavg Load Balancing

Locks kernel lock

Meminfo memory information

Misc Miscellaneous

List of Modules loaded by Modules

File System loaded by Mounts

Partition tables recognized by the Partitions System

Rtc real-time clock

Slabinfo Slab pool information

Stat comprehensive statistics Status table

Swaps space utilization

Version kernel Version

Uptime system normal running time

To view system information, run the cat command. For example:

# Cat/proc/interrupts

CPU0

0: 8728810 XT-PIC timer

1: 895 XT-PIC keyboard

2: 0 XT-PIC cascade

3: 531695 XT-PIC aha152x

4: 2014133 XT-PIC serial

5: 44401 XT-PIC pcnet_cs

8: 2 XT-PIC rtc

XT-PIC i82365

XT-PIC Mouse 12: 182918

13: 1 XT-PIC fpu PS/2

14: 1232265 XT-PIC ide0

15: 7 XT-PIC ide1

NMI: 0

You can also modify kernel parameters. There is an interesting directory in the/proc file system:/proc/sys. It not only provides kernel information, but also allows you to modify kernel parameters to optimize your system. But you must be very careful because it may cause system crashes. It is best to first find an irrelevant machine and apply it to your system after successful debugging.

To change the kernel parameters, you only need to use the vi editing or echo parameter to redirect to the file. The following is an example:

# Cat/proc/sys/fs/file-max

4096

# Echo 8192>/proc/sys/fs/file-max

# Cat/proc/sys/fs/file-max

8192

If you have optimized the parameters, you can add them to the rc. local file so that they are automatically modified when the system starts.

[1] [2] [3] Next page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.