-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 85623 b: refs/heads/master c: 6585b4a h: refs/heads/master i: 85621: 316163c 85619: 0f46e5e 85615: bb8ca56 v: v3
- Loading branch information
Jeff Garzik
committed
Feb 11, 2008
1 parent
ea846a5
commit 0532107
Showing
2,767 changed files
with
154,014 additions
and
71,964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: ec6d2d453a932fd50c5fd95d5aac633b4e5f241d | ||
refs/heads/master: 6585b4a71f523485ecf33e7f4569be4095d63699 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
What: /proc/diskstats | ||
Date: February 2008 | ||
Contact: Jerome Marchand <jmarchan@redhat.com> | ||
Description: | ||
The /proc/diskstats file displays the I/O statistics | ||
of block devices. Each line contains the following 14 | ||
fields: | ||
1 - major number | ||
2 - minor mumber | ||
3 - device name | ||
4 - reads completed succesfully | ||
5 - reads merged | ||
6 - sectors read | ||
7 - time spent reading (ms) | ||
8 - writes completed | ||
9 - writes merged | ||
10 - sectors written | ||
11 - time spent writing (ms) | ||
12 - I/Os currently in progress | ||
13 - time spent doing I/Os (ms) | ||
14 - weighted time spent doing I/Os (ms) | ||
For more details refer to Documentation/iostats.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
What: /sys/block/<disk>/stat | ||
Date: February 2008 | ||
Contact: Jerome Marchand <jmarchan@redhat.com> | ||
Description: | ||
The /sys/block/<disk>/stat files displays the I/O | ||
statistics of disk <disk>. They contain 11 fields: | ||
1 - reads completed succesfully | ||
2 - reads merged | ||
3 - sectors read | ||
4 - time spent reading (ms) | ||
5 - writes completed | ||
6 - writes merged | ||
7 - sectors written | ||
8 - time spent writing (ms) | ||
9 - I/Os currently in progress | ||
10 - time spent doing I/Os (ms) | ||
11 - weighted time spent doing I/Os (ms) | ||
For more details refer Documentation/iostats.txt | ||
|
||
|
||
What: /sys/block/<disk>/<part>/stat | ||
Date: February 2008 | ||
Contact: Jerome Marchand <jmarchan@redhat.com> | ||
Description: | ||
The /sys/block/<disk>/<part>/stat files display the | ||
I/O statistics of partition <part>. The format is the | ||
same as the above-written /sys/block/<disk>/stat | ||
format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
What: /sys/firmware/acpi/interrupts/ | ||
Date: February 2008 | ||
Contact: Len Brown <lenb@kernel.org> | ||
Description: | ||
All ACPI interrupts are handled via a single IRQ, | ||
the System Control Interrupt (SCI), which appears | ||
as "acpi" in /proc/interrupts. | ||
|
||
However, one of the main functions of ACPI is to make | ||
the platform understand random hardware without | ||
special driver support. So while the SCI handles a few | ||
well known (fixed feature) interrupts sources, such | ||
as the power button, it can also handle a variable | ||
number of a "General Purpose Events" (GPE). | ||
|
||
A GPE vectors to a specified handler in AML, which | ||
can do a anything the BIOS writer wants from | ||
OS context. GPE 0x12, for example, would vector | ||
to a level or edge handler called _L12 or _E12. | ||
The handler may do its business and return. | ||
Or the handler may send send a Notify event | ||
to a Linux device driver registered on an ACPI device, | ||
such as a battery, or a processor. | ||
|
||
To figure out where all the SCI's are coming from, | ||
/sys/firmware/acpi/interrupts contains a file listing | ||
every possible source, and the count of how many | ||
times it has triggered. | ||
|
||
$ cd /sys/firmware/acpi/interrupts | ||
$ grep . * | ||
error:0 | ||
ff_gbl_lock:0 | ||
ff_pmtimer:0 | ||
ff_pwr_btn:0 | ||
ff_rt_clk:0 | ||
ff_slp_btn:0 | ||
gpe00:0 | ||
gpe01:0 | ||
gpe02:0 | ||
gpe03:0 | ||
gpe04:0 | ||
gpe05:0 | ||
gpe06:0 | ||
gpe07:0 | ||
gpe08:0 | ||
gpe09:174 | ||
gpe0A:0 | ||
gpe0B:0 | ||
gpe0C:0 | ||
gpe0D:0 | ||
gpe0E:0 | ||
gpe0F:0 | ||
gpe10:0 | ||
gpe11:60 | ||
gpe12:0 | ||
gpe13:0 | ||
gpe14:0 | ||
gpe15:0 | ||
gpe16:0 | ||
gpe17:0 | ||
gpe18:0 | ||
gpe19:7 | ||
gpe1A:0 | ||
gpe1B:0 | ||
gpe1C:0 | ||
gpe1D:0 | ||
gpe1E:0 | ||
gpe1F:0 | ||
gpe_all:241 | ||
sci:241 | ||
|
||
sci - The total number of times the ACPI SCI | ||
has claimed an interrupt. | ||
|
||
gpe_all - count of SCI caused by GPEs. | ||
|
||
gpeXX - count for individual GPE source | ||
|
||
ff_gbl_lock - Global Lock | ||
|
||
ff_pmtimer - PM Timer | ||
|
||
ff_pwr_btn - Power Button | ||
|
||
ff_rt_clk - Real Time Clock | ||
|
||
ff_slp_btn - Sleep Button | ||
|
||
error - an interrupt that can't be accounted for above. | ||
|
||
Root has permission to clear any of these counters. Eg. | ||
# echo 0 > gpe11 | ||
|
||
All counters can be cleared by clearing the total "sci": | ||
# echo 0 > sci | ||
|
||
None of these counters has an effect on the function | ||
of the system, they are simply statistics. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.