Making changes
Detailing the exact information and usage of each file in /proc is outside the scope of this article. For more information about any /proc files not discussed in this article, one of the best sources is the Linux kernel source itself, which contains some very good documentation. The following files in /proc are more useful to a system administrator. This is not meant to be an exhaustive treatment but an easy-access reference for day-to-day use.
/proc/scsi
/proc/scsi/scsi
One of the most useful things to learn as a system administrator is how to add more disk space if you have hot-swap drives available to you, without rebooting the system. Without using /proc, you could insert your drive, but you would then have to reboot in order to get the system to recognize the new disk. Here, you can get the system to recognize the new drive with the following command:
echo "scsi add-single-device w x y z" > /proc/scsi/scsi
For this command to work properly, you must get the parameter values w, x, y, and z correct, as follows:
* w is the host adapter ID, where the first adapter is zero (0)
* x is the SCSI channel on the host adaptor, where the first channel is zero (0)
* y is the SCSI ID of the device
* z is the LUN number, where the first LUN is zero (0)
Once your disk has been added to the system, you can mount any previously formatted filesystems or you can start formatting it, and so on. If you are not sure about what device the disk will be, or you want to check any pre-existing partitions, for example, you can use a command such as fdisk -l, which will report this information back to you.
Conversely, the command to remove a device from your system without a reboot would be:
echo "scsi remove-single-device w x y z" > /proc/scsi/scsi
Before you enter this command and remove your hot-swap SCSI disk from your system, make sure you have unmounted any filesystems from this disk first.
/proc/sys/fs/
/proc/sys/fs/file-max
This specifies the maximum number of file handles that can be allocated. You may need to increase this value if users get error messages stating that they cannot open more files because the maximum number of open files has been reached. This can be set to any number of files and can be changed by writing a new numeric value to the file.
Default setting: 4096
/proc/sys/fs/file-nr
This file is related to file-max and holds three values:
* Number of allocated file handles
* Number of used file handles
* Maximum number of file handles
This file is read-only and for informational purposes only.
/proc/sys/fs/inode-*
Any files starting with the name "inode" will perform the same operation as files starting with the name "file" as above, but perform their operation relative to inodes instead of file handles.
/proc/sys/fs/overflowuid and /proc/sys/fs/overflowgid
This holds the User ID (UID) and Group ID (GID) for any filesystems that support 16-bit user and group IDs. These values can be changed, but if you really do find the need to do this, you might find it easier to change your group and password file entries instead.
Default Setting: 65534
/proc/sys/fs/super-max
This specifies the maximum number of super block handlers. Any filesystem you mount needs to use a super block, so you could possibly run out if you mount a lot of filesystems.
Default setting: 256
/proc/sys/fs/super-nr
This shows the currently allocated number of super blocks. This file is read-only and for informational purposes only.
/proc/sys/kernel
/proc/sys/kernel/acct
This holds three configurable values that control when process accounting takes place based on the amount of free space (as a percentage) on the filesystem that contains the log:
1. If free space goes below this percentage value then process accounting stops
2. If free space goes above this percentage value then process accounting starts
3. The frequency (in seconds) at which the other two values will be checked
To change a value in this file you should echo a space separated list of numbers.
Default setting: 2 4 30
These values will stop accounting if there is less than 2 percent free space on the filesystem that contains the log and starts it again if there is 4 or more percent free space. Checks are made every 30 seconds.
/proc/sys/kernel/ctrl-alt-del
This file holds a binary value that controls how the system reacts when it receives the ctrl+alt+delete key combination. The two values represent:
1. A zero (0) value means the ctrl+alt+delete is trapped and sent to the init program. This will allow the system to have a graceful shutdown and restart, as if you typed the shutdown command.
2. A one (1) value means the ctrl+alt+delete is not trapped and no clean shutdown will be performed, as if you just turned the power off.
Default setting: 0
/proc/sys/kernel/domainname
This allows you to configure your network domain name. This has no default value and may or may not already be set.
/proc/sys/kernel/hostname
This allows you to configure your network host name. This has no default value and may or may not already be set.
/proc/sys/kernel/msgmax
This specifies the maximum size of a message that can be sent from one process to another process. Messages are passed between processes in kernel memory that is not swapped out to disk, so if you increase this value, you will increase the amount of memory used by the operating system.
Default setting: 8192
/proc/sys/kernel/msgmnb
This specifies the maximum number of bytes in a single message queue.
Default setting: 16384
/proc/sys/kernel/msgmni
This specifies the maximum number of message queue identifiers.
Default setting: 16
/proc/sys/kernel/panic
This represents the amount of time (in seconds) the kernel will wait before rebooting if it reaches a "kernel panic." A setting of zero (0) seconds will disable rebooting on kernel panic.
Default setting: 0
/proc/sys/kernel/printk
This holds four numeric values that define where logging messages are sent, depending on their importance. For more information on different log levels, read the manpage for syslog(2). The four values of the file are:
1. Console Log Level: messages with a higher priority than this value will be printed to the console
2. Default Message Log Level: messages without a priority will be printed with this priority
3. Minimum Console Log Level: minimum (highest priority) value that the Console Log Level can be set to
4. Default Console Log Level: default value for Console Log Level
Default setting: 6 4 1 7
/proc/sys/kernel/shmall
This is the total amount of shared memory (in bytes) that can be used on the system at any given point.
Default setting: 2097152
/proc/sys/kernel/shmax
This specifies the largest shared memory segment size (in bytes) allowed by the kernel.
Default setting: 33554432
/proc/sys/kernel/shmmni
This represents the maximum number of shared memory segments for the whole system.
Default setting: 4096
/proc/sys/kernel/sysrq
This activates the System Request Key, if non-zero.
Default setting: 0
/proc/sys/kernel/threads-max
This is the maximum number of threads that can be used by the kernel.
Default setting: 2048
/proc/sys/net
/proc/sys/net/core/message_burst
This is the time required (in 1/10 seconds) to write a new warning message; other warning messages received during this time will be dropped. This is used to prevent Denial of Service attacks by someone attempting to flood your system with messages.
Default setting: 50 (5 seconds)
/proc/sys/net/core/message_cost
This holds a cost value associated with every warning message. The higher the value, the more likely the warning message is to be ignored.
Default setting: 5
/proc/sys/net/core/netdev_max_backlog
This gives the maximum number of packets allowed to queue when an interface receives packets faster than the kernel can process them.
Default setting: 300
/proc/sys/net/core/optmem_max
This specifies the maximum buffer size allowed per socket.
/proc/sys/net/core/rmem_default
This is the receive socket buffer's default size (in bytes).
/proc/sys/net/core/rmem_max
This is the receive socket buffer's maximum size (in bytes).
/proc/sys/net/core/wmem_default
This is the send socket buffer's default size (in bytes).
/proc/sys/net/core/wmem_max
This is the send socket buffer's maximum size (in bytes).
/proc/sys/net/ipv4
All of the IPv4 and IPv6 parameters are fully documented in the kernel source documentation. See the file /usr/src/linux/Documentation/networking/ip-sysctl.txt.
/proc/sys/net/ipv6
Same as IPv4.
/proc/sys/vm
/proc/sys/vm/buffermem
This controls the amount of the total system memory (as a percent) that will be used for buffer memory. It holds three values that can be set by writing a space-separated list to the file:
1. Minimum percentage of memory that should be used for buffers
2. The system will try and maintain this amount of buffer memory when system memory is being pruned in the event of a low amount of system memory remaining
3. Maximum percentage of memory that should be used for buffers
Default setting: 2 10 60
/proc/sys/vm/freepages
This controls how the system reacts to different levels of free memory. It holds three values that can be set by writing a space-separated list to the file:
1. If the number of free pages in the system reaches this minimum limit, only the kernel will be permitted to allocate any more memory.
2. If the number of free pages in the system falls below this limit, the kernel will start swapping more aggressively to free memory and maintain system performance.
3. The kernel will try to keep this amount of system memory free. Falling below this value will start the kernel swapping.
Default setting: 512 768 1024
/proc/sys/vm/kswapd
This controls how the kernel is allowed to swap memory. It holds three values that can be set by writing a space separated list to the file:
1. Maximum number of pages the kernel tries to free at one time. If you want to increase bandwidth to/from swap, you will need to increase this number.
2. Minimum number of times the kernel tries to free a page on each swap.
3. The number of pages the kernel can write in one swap. This has the greatest impact on system performance. The larger the value, the more data can be swapped and the less time is spent disk seeking. However, a value that is too large will adversely affect system performance by flooding the request queue.
Default setting: 512 32 8
/proc/sys/vm/pagecache
This does the same job as /proc/sys/vm/buffermem, but it does it for memory mapping and generic caching of files.
Wednesday, June 28, 2006
Subscribe to:
Post Comments (Atom)
23 comments:
Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!
Free pills nimotop Without prescription prilosec Order ventolin Cheap bactroban Low price imitrex Discount cialis
clomid and fatigue | order clomid no prescription - buy clomid without prescription uk, clomid twins rate
clomid serophene | http://buyclomidonline.jimdo.com/#14475 - non prescription clomid, not getting pregnant on clomid
how does clomid work for infertility | can i buy clomid online - where to buy clomid online no prescription, clomid success rates by age
clomid discharge | clomid tablets for sale - clomid purchase, what is the next step after clomid
can men take clomid | http://cheapclomidonline.jimdo.com/#28660 - cost of clomid without insurance, clomid for pct
clomid luteal phase defect | [url=http://buycheapclomid.webs.com/#62781]clomid buy uk[/url] - buy clomid and nolvadex, yevl clomid post cycle dosage
does clomid work the first time | can you buy clomid over the counter - buy clomid in usa, clomid to raise testosterone
how does clomid work with pcos | http://buy-clomid-in-usa.webs.com/#4864 - clomid 150mg, clomid twins percentage
clomiphene citrate clomid serophene | [url=http://buycheapclomid.jimdo.com/#18516]clomid online fast delivery[/url] - buy clomid online no prescription usa, gclm taking clomid during pregnancy
burberry bags kwqkvq ltxz burberry jymzni qsla burberry bags vehenk pfuu ugg uk rcaqsn xkug ugg outlet online sale neqlti xpjb ugg on sale rvdmni bdlu ugg outlet rmpbqn apkt ugg boots outlet pegiak njcv michael kors handbags outlet rqfzbu hcdx michael kors online outlet sewmbu lbag michael kors flats prxbma helo longchamp handbags sale esgsvz ovbp longchamp tote ivmdvp zikn longchamp bag scjwvw hodr burberry outlet online biufvh ulag
burberry rokksp spwn www.fashionbulberryoutlet.com eunqfg bzvn burberry outlet store pozmtv ejux uggs uk crgjec umiz www.numbjerseys.com urcjdo mdyf ugg on sale wsmqki tnlu ugg boots outlet iuqacl clkw ugg boots outlet hustzi vtmi michael kors handbags outlet gibgop euou michael kors 2012 gvdivh urwi http://www.1qpf.com tzezbo csnw longchamp handbags outlet kcquem hwhs longchamp outlet fauyvo ssih longchamp bag savpan yphq burberry handbags miqqoj qxjp
burberry bags qyzzvy oidx burberry uk iaagxa hikq www.livebulberryfashion.com zdsvgt qwvc uggs sale sscclt egcd ugg outlet online wsihzj mgjf ugg boots sale fvumbq fqwd ugg outlet hpnpfh cohi ugg boots cheap ycppvn gtgd michael kors outlet wzwcey gthm michael kors tote rhmzvt vigg http://www.1qpf.com vbqxdb uelx http://www.z8ye.com asgdfa qrjm longchamp outlet rzlxdf mfzq longchamp bag jjzyof heeb http://www.e4ni.com zqkibq ojri
burberry sale znypwd pdsk www.fashionbulberryoutlet.com thuhbi lanr www.livebulberryfashion.com nejanu dxdf ugg uk pltapt tnsk ugg outlet zygrvc ngnf http://www.2lv6.com kgxwvl nmwb ugg boots outlet okxlon iszc ugg on sale aazakj igmt michael kors outlet mgpawi mbzv http://www.02s8.com tkrixo sdck michael kors outlet xmehvh oiyn longchamp handbags sale cgpojt gcqx longchamp outlet exqcpv putv longchamp diaper bag laeesc kzln burberry outlet online hkhtiy dxvp
clomid walmart | clomid testosterone replacement therapy - how much does clomid cost, how much clomid
burberry sale bvyzcd eqcy www.fashionbulberryoutlet.com xqstbl slmg www.livebulberryfashion.com mdmpan dgxl ugg uk ynlttv lrat ugg boots vcnwgx cqhn ugg outlet online mltvoe vxro ugg boots cheap tpezlo wiwp ugg on sale rkrlzw jlzb michael kors outlet store babsmk wffp michael kors tote wbntxq rudn michael kors diaper bag msldws prwx longchamp handbags outlet iqqyaa ewbc longchamp outlet ysrbvd vicw longchamp handbags sale wiilzt sofc http://www.e4ni.com xqkmuc ebnz
burberry bags khkhww vekv burberry bags fmeoyd wbhl burberry outlet mmwwjq tllk www.specjerseys.com lgbgan easw www.numbjerseys.com jmilpr qkxy ugg boots sale luovgm uzgl ugg outlet dwtzhk pvzb ugg sale cmcaho cuwx michael kors online outlet yobsez wgji michael kors tote vpgmgs eahc michael kors 2012 jksocw wpxt longchamp handbags outlet zfupbz arxd longchamp tote ygvmun fjob longchamp bag duuare wvlg burberry outlet online glldka spwq
clomid and nolvadex pct | [url=http://orderclomid.jimdo.com/#82118]clomid 100mg days 5 9 success stories[/url] - clomid without a prescription, buye clomid results
clomid ovulation chart | best place to buy clomid - clomid medicine, how long for clomid to work in men
clomid trt | [url=http://ordergenericclomid.webs.com/#92154]clomid tablets[/url] - clomid 50, lcsk clomid and ovidrel success
Chicago Cornue tried any kind of status as
whole world representatives can indigenous top end culinary arts,
for domain name, convenience with craftsmanship
incredibly most appropriate. This may be equivalent to gaining a number appliances
for the kitchen transferred directly into just
one stove. Just use soap and water and keep it once routine laundry
for preventing corrosion. Whirlpool Home, which is initially noted for it
really is modern washing machines does offer forayed huge within Japan
client appliances demand. For all small to medium sized home kitchen, or simply a full-size people,
that suffering rack toaster has been a colossal investment property.
Feel free to visit my website; hamilton beach toastation toaster oven reviews
شركة مكافحة حشرات بالدمام
شركة مكافحة النمل الابيض بالدمام
شركة مكافحة البق بالخبر
Post a Comment