Hi, there are some people answered my question. Thanks lots. But I still can't find the information what I need. So, here, I would like to say some details about my problem. I am using a test software (DOTs) to test databases performance. It's is only supported on linux platforms. It need to accesses the system level files (/proc/meminfo, /proc/stat etc.) and gets CPU, disk and memory usage information by parsing the system level files. I looked into the source code where it reads and parse the system level file. I found it read /proc/stat file to get cpu, disk and page information. It is supposed that in the /proc/stat file, there are some lines start with "cpu", "disk" or "disk_io", "page", and the program get the correspoding information from those lines. But in Suse 9.3(the version I am using), I used "cat stat" to show the content of the stat file, there are not disk_io and page_in_out information. So far, I found the page_in_out information in the vmstat file. But I still can not find the disk_io information.I searched all of the file under /proc/ folder, but no resule. The result of the test software I am tring to use is supposed to be something like following: <Total Execution Time> 0 hours 1 minutes. <Current Concurrent DB Connections> 1. <JDBC APIs> Total number of QUERY 2559. Total number of UPDATE 0. Total number of INSERT 7597. Total number of DELETE 0. Total number of FAILED 0. <Average CPU> Peak of this Interval: 49% Average of this Interval: 39% Peak of all: 49% Average of all: 39% <CPU0> Peak of this Interval: 66% Average of this Interval: 40% Peak of all: 66% Average of all: 40% <CPU1> Peak of this Interval: 82% Average of this Interval: 38% Peak of all: 82% Average of all: 38% <Memory> Peak of this Interval: 257M Average of this Interval: 250M Peak of all: 257M Average of all: 250M <Disk IO> Peak of this Interval: 430/s Average of this Interval: 339/s Peak of all: 430/s Average of all: 339/s <Page In> Peak of this Interval: 0/s Average of this Interval: 0/s Peak of all: 0/s Average of all: 0/s <Page Out> Peak of this Interval: 2494/s Average of this Interval: 1964/s Peak of all: 2494/s Average of all: 1964/s Now, the disk_io is just 0, since the program can not get the information. Someone could help me? Thanks. Raymond _________________________________________________________________ Designer Mail isn't just fun to send, it's fun to receive. Use special stationery, fonts and colors. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.
Raymond, On Tuesday 06 September 2005 13:10, raymond raymond wrote:
Hi, there are some people answered my question. Thanks lots. But I still can't find the information what I need. So, here, I would like to say some details about my problem.
I am using a test software (DOTs) to test databases performance. It's is only supported on linux platforms.
Would that be Database Opensource Test Suite (<http://ltp.sourceforge.net/dotshowto.php>)?
It need to accesses the system level files (/proc/meminfo, /proc/stat etc.) and gets CPU, disk and memory usage information by parsing the system level files. I looked into the source code where it reads and parse the system level file. I found it read /proc/stat file to get cpu, disk and page information. It is supposed that in the /proc/stat file, there are some lines start with "cpu", "disk" or "disk_io", "page", and the program get the correspoding information from those lines. But in Suse 9.3(the version I am using), I used "cat stat" to show the content of the stat file, there are not disk_io and page_in_out information. So far, I found the page_in_out information in the vmstat file. But I still can not find the disk_io information.I searched all of the file under /proc/ folder, but no resule.
Which kernel are you running? For which kernel is the monitoring software written? Perhaps they're not the same and the particular information that software seeks is no longer in the place in which it was found in the kernel for which it was written. According the the DOTS page I found, the requirement is for kernel 2.4.4 "or later." But I wonder if they've tested it on 2.6 kernels? I wonder if the pertinent introspection files have changed from 2.4.4 to the 2.6.x kernels? This is why I recommended that you use applications to access this information. Their output tends to be more stable in the face of changes in low-level implementation details. If you have the source code for the monitoring software, you could modify it to accommodate the current information presentation in /proc and /sys.
The result of the test software I am tring to use is supposed to be something like following: ...
<Disk IO> Peak of this Interval: 430/s Average of this Interval: 339/s Peak of all: 430/s Average of all: 339/s
<Page In> Peak of this Interval: 0/s Average of this Interval: 0/s Peak of all: 0/s Average of all: 0/s
...
Now, the disk_io is just 0, since the program can not get the information. Someone could help me?
It rather looks to me like it's reporting non-zero I/O numbers. Paging is zero, but that just means you're not paging, presumably.
...
Thanks.
Raymond
Randall Schulz
The result of the test software I am tring to use is supposed to be something like following: ...
<Disk IO> Peak of this Interval: 430/s Average of this Interval: 339/s Peak of all: 430/s Average of all: 339/s
<Page In> Peak of this Interval: 0/s Average of this Interval: 0/s Peak of all: 0/s Average of all: 0/s
...
Now, the disk_io is just 0, since the program can not get the information. Someone could help me?
It rather looks to me like it's reporting non-zero I/O numbers. Paging is zero, but that just means you're not paging, presumably.
Randall Schulz
The result I gave is just an example given by the instruction of DOTs. It is not what I got. It is what I want to to get, ^_^. In my result, the disk_IO is 0 (zero). Thanks. Raymond _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.
participants (2)
-
Randall R Schulz
-
raymond raymond