⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sadc.8

📁 linux下查看系统工具原码,如IOSTAT等
💻 8
字号:
.TH SADC 8 "OCTOBER 2005" Linux "Linux User's Manual" -*- nroff -*-.SH NAMEsadc \- System activity data collector..SH SYNOPSIS.B /usr/lib/sa/sadc [ -d ] [ -F ] [ -I ] [ -L ] [ -V ] [.I interval.B [.I count.B ] ] [.I outfile.B ].SH DESCRIPTIONThe.B sadccommand samples system data a specified number of times (.I count) at a specified interval measured in seconds (.I interval). It writes in binary format to the specified.I outfileor to the standard output. If.I outfileis set to -, then.B sadcuses the standard system activity daily data file, the.IR /var/log/sa/sa ddfile, where the dd parameter indicates the current day.By default.B sadccollects all the data available from the kernel.Exceptions are interrupts and disks data, for which therelevant options must be explicitly passed to.B sadc(see options below).When the.I countparameter is not specified,.B sadcwrites its data endlessly.When both.I intervaland.I countare not specified, a dummy record, which is used at system startup to markthe time when the counter restarts from 0, will be written.For example, one of the system startup script may write the restart mark tothe daily data file by the command entry:.B "/usr/lib/sa/sadc -"The.B sadccommand is intended to be used as a backend to the.B sarcommand.Note: The.B sadccommand only reports on local activities..SH OPTIONS.IP -dTell.B sadcto report statistics for disks. By default.B sadcdoes not report disks activity to prevent data files from growing too large..IP -FThe creation of.I outfilewill be forced. If the file already exists and has not the format expected by.B sadcthen it will be truncated. This may be particularly useful for daily data filescreated by an older version of sadc and whose format is no longer compatiblewith current one..IP -ITell.B sadcto report statistics for all system interrupts. By default.B sadconly reports statistics for the total number of interrupts..IP -L.B sadcwill try to get an exclusive lock on the.I outfilebefore writing to it or truncating it. Failure to get the lock is fatal,except in the case of trying to write a normal (i.e. not a dummy and nota header) record to an existing file, in which case.B sadcwill try again at the next interval. Usually, the only reason a lockwould fail would be if another.B sadcprocess were also writing to the file. This can happen when cron is usedto launch.B sadc .If the system is under heavy load, an old.B sadcmight still be running when cron starts a new one. Without locking,this situation can result in a corrupted system activity file..IP -VPrint version number then exit..SH EXAMPLES.B /usr/lib/sa/sadc 1 10 /tmp/datafile.RSWrite 10 records of one second intervals to the /tmp/datafile binary file..SH BUGS.I /procfilesystem must be mounted for the.B sadccommand to work.All the statistics are not necessarily available, depending on the kernel version used..SH FILES.IR /var/log/sa/sa dd.RSIndicate the daily data file, where the.B ddparameter is a number representing the day of the month..RE.IR /proccontains various files with system statistics..SH AUTHORSebastien Godard (sysstat <at> wanadoo.fr).SH SEE ALSO.BR sar (1),.BR sa1 (8),.BR sa2 (8),.BR sadf (1),.BR mpstat (1),.BR iostat (1),.BR vmstat (8).I http://perso.wanadoo.fr/sebastien.godard/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -