Disk related counter info

hi.
am doing a kstat read into KSTAT_IO_T for extratcing disk related counter info .Is it correct. am always getting zero vlaues.
I see that reads and writes are declared as uint_t in kstat_io_t but
iostat -x returns float values.
regards
Deepth

Hi Deepth,
"iostat -x" gives the reads,bytes etc. as a function of time . Do man iostat for more details.
kstst_io_t is the right structure to use for getting disk statistics.
When you do kstat_read into kstat_io_t you get the absolute value of no. of disk reads, writes etc. ( not as a function of time ) .
You shouldn't be getting zero values for disk reads & writes . Can you just cut & paste the section of your program which does this ?
Thanks,
Prajeesh

Similar Messages

  • DISK,VM,NETWORk,PROCESS COUNTER INFO

    Hi,
    1. For VM I am using the cpu_vminfo_t to collect the VM counters? The value
    that I get for pages page in is 4605 (pages page in /lbolt_time). The values for pages paged out is 3881 again divided by lbolt time. Are these
    values correct? What is the command to verify these values?
    2. For Disk I am collecting the counters reads and writes , kilobytes read, kilobytes written from kstat_io_t. Is this the right structure to be used to collect the values? I am getting the disk reads as 213344 and disk writes as 0. Kilobytes read and written per sec are 0. I am using iostat
    to check these values. But the values do not match. So please suggest me
    if I am using the right structure to get the counter values.
    3. For networks which is the structure to be used to get the packets in, packets out, bytes in, bytes out, routes, socket open. etc.
    4. Again for process which is the structute to be used to get all the process counters?
    Any help or ideas on this is welcome.
    Thanks in advance,
    Charulatha.

    Forums > Forum: Kernel
    DISK,VM,NETWORk,PROCESS COUNTER INFO
    Hi,
    1. For VM I am using the cpu_vminfo_t to collect the VM counters? The value that I get for pages page in is 4605 (pages page in /lbolt_time). The values for pages paged out is 3881 again divided by lbolt time. Are these values correct? What is the command to verify these values?
    2. For Disk I am collecting the counters reads and writes , kilobytes read, kilobytes written from kstat_io_t. Is this the right structure to be used to collect the values? I am getting the disk reads as 213344 and disk writes as 0. Kilobytes read and written per sec are 0. I am using iostat to check these values. But the values do not match. So please suggest me if I am using the right structure to get the counter values.
    3. For networks which is the structure to be used to get the packets in, packets out, bytes in, bytes out, routes, socket open. etc.
    4. Again for process which is the structute to be used to get all the process counters?
    Any help or ideas on this is welcome.
    Thanks in advance,
    Charulatha.

  • Disk-remap-count is 768

    Hello all
    I have an XServe Raid which is reporting a disk-remap-count of 768 on one of its disks. I have not seen a change in the remap-count number over the past several weeks, but seeing non-zero here makes me think the disk is developing bad sectors and should be replaced. Is this a correct assessment? If not, should I completely ignore this number?
    Thanks

    It doesn't look the the remap count is available from the RAID Admin utility. However, the statistic is there if you pull the XML for report from the http query page "rsp-action", using page-id 16. Notice the "disk-remap-count" parameter for disk id 4:
    HTTP/1.1 200 OK
    Server: Apple Embedded Web Server/1.0
    Content-Length: 3256
    Content-Type: application/xml
    Client-Date: Mon, 03 Mar 2008 15:42:49 GMT
    Client-Peer: xx.xx.xx.xx:80
    Client-Response-Num: 1
    MIME-Version: 1.0
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist SYSTEM "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="0.9">
    <dict>
    <key>get-page</key>
    <dict>
    <key>id</key>
    <integer>16</integer>
    <key>slots</key>
    <array>
    <dict>
    <key>id</key>
    <integer>1</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS724040KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>KFABA4AA</string>
    <key>disk-sector-capacity</key>
    <integer>781411968</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>0</integer>
    </dict>
    <dict>
    <key>id</key>
    <integer>2</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS724040KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>KFABA4AA</string>
    <key>disk-sector-capacity</key>
    <integer>781411968</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>0</integer>
    </dict>
    <dict>
    <key>id</key>
    <integer>3</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS724040KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>KFABA4AA</string>
    <key>disk-sector-capacity</key>
    <integer>781411968</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>0</integer>
    </dict>
    <dict>
    <key>id</key>
    <integer>4</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS725050KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>K2ABA20A</string>
    <key>disk-sector-capacity</key>
    <integer>976762368</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>768</integer>
    </dict>
    <dict>
    <key>id</key>
    <integer>5</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS724040KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>KFABA4AA</string>
    <key>disk-sector-capacity</key>
    <integer>781411968</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>0</integer>
    </dict>
    <dict>
    <key>id</key>
    <integer>6</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS724040KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>KFABA4AA</string>
    <key>disk-sector-capacity</key>
    <integer>781411968</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>0</integer>
    </dict>
    <dict>
    <key>id</key>
    <integer>7</integer>
    <key>disk-vendor-id</key>
    <string>Hitachi HDS724040KLAT80 </string>
    <key>disk-firmware-version</key>
    <string>KFABA4AA</string>
    <key>disk-sector-capacity</key>
    <integer>781411968</integer>
    <key>disk-bad-block-count</key>
    <integer>0</integer>
    <key>disk-remap-count</key>
    <integer>0</integer>
    </dict>
    </array>
    </dict>
    </dict>
    </plist>

  • Disk related error (-43)

    Hey guys, I recently bought an imac G3.
    I am trying to install itunes 1.1 on it however i come across a problem.
    When i double click on the itunes installer and application called "stuffit"
    opens. This says its "decoding macbinary II".
    I then get an error message saying:
    "sorry, but a disk related error (-43) has prevented the operation from concluding."
    Can anyone help me??
    thanks, lozzdude.

    Have you verified that iTunes will run on Mac OS 9.2?
    You should try dragging the iTunes download onto stuffit.
    Robert

  • Logical Disk Performance counter for cluster shared volume on Hyper-V

    Hello All,
    I am trying to collect counters like latency, queuelength from Win32_PerfFormattedData_PerfDisk_LogicalDisk WMI class.
    Output of "Name" attribute for logical disks in this class as below:
    Name: _Total
    Name: C:
    Name: E:
    Name: HarddiskVolume1
    Name: Q:
    Name here doesn't show the actual label so I queried Win32_Volume class and wanted to join with performance WMI class. Out put of Win32_Volume is as below:
    Caption: E:\
    Label: New Volume
    Name: E:\
    Caption: Q:\
    Label: Quorum
    Name: Q:\
    Caption: C:\
    Label: Voume C
    Name: C:\
    Caption: F:\
    Label: SAN
    Name: F:\
    Please note that "Name" attribute matches for all except one with label "SAN". This is cluster shared volume and "Name" attribute value is "HardDiskVolume1" in Win32_PerfFormattedData_PerfDisk_LogicalDisk class.
    Is this is a configuration issue or any other alternative to get volume label and corresponding performance counters.
    Thanks in advance
    Regards,
    Udupa

    Hi Udupa,
    I haven't found a better way, if you want to combine the two script, please refer to the script below:
    $output=@()
    $volumes = gwmi Win32_Volume
    foreach($volume in $volumes){
    $match=($volume.name).TrimEnd("\")
    $counter=gwmi Win32_PerfFormattedData_PerfDisk_LogicalDisk |where{$_.name -eq $match}
    $Object = New-Object PSObject
    $Object | add-member Noteproperty name $volume.name
    $Object | add-member Noteproperty label $volume.label
    $Object | add-member Noteproperty AvgDiskQueueLength $counter.AvgDiskQueueLength
    $output += $Object
    $output
    I hope this helps.

  • CRM 7: Is there an FM  to display the Trial and related statistic/info ?

    I'm trying to add a new Assignment block to the Account screen to show the Trial and trial statistic info for the BP, if it exists.
    I'm pretty sure no such AB already exists, and so have concluded that I need to create a new AB and add the apprropriate fields and populate them myself. That's the main reason for enquiring if there's an FM to display the trial related data, or failing that, maybe the tables that this info is held in.
    Very much troubled.
    Jason

    Maybe someone knows how or where a Trial is recorded and what tables might be used?.
    Jas

  • Make Edit time and Edit count info available in Loupe Info, grid view option, Edit History panel and Smart Collection

    We all know that Lightroom can sort images in grid view by edit time or edit count. I cannot find any way to display edit time and/or edit count in view option or loupe info. I think these should be made viewable. Without them, when you have a large batch of image and you previously edited only some and come back later to finish, you don't know which ones need more work, etc.
    Another useful thing is that Edit History should have an option to show the date/time of the edit. It may be shown when mouse is hovered over an edit item line.
    Similarly, smart folder can filter the images by Edit Time being before/after a certain date. However, if I have no way of knowing what the edit times and counts are, this feature has little use.
    Alll of the above should be a specific date like 08-20-2009 or Today, yesterday, 43 days ago, etc. Both forms are useful for different purposes.

    Good idea.
    Also, it would be good if the SDK functions for updating custom metadata did not necessarily bump the edit time.

  • Missing disk space - 'get info' differs from 'du'

    Hi there
    I have three harddrives in the server - one 80 GB drive for the system (called Server HD) and two 1TB drives for the home directories and network shares.
    The problem is that, according to 'get info', the 80GB drive is almost full (only 6 G left) and I don't know where all the space is used.
    When I the applications 'disk inventory' or 'whatsize'(in administrator mode) or the terminal with 'sudo du -shx /Volumes/Server\ HD' they all report a disk usage of about 23GB, which is more likely as the system is just a few weeks old and the home directories are not located in this volume.
    But if I use 'df' to see the free space this reports the same as 'get info' - only about 6GB left.
    According to the system profiler the smart status is verified, so the disk should be ok (I think).
    Unfortunately I am pretty new to Macs so I don't have the slightest idea what to do now to check and hopefully reclaim the missing disk space.
    Thanks for any tips
    Claudia

    Look in /Volumes directory there should only be an alias or mount point for any volumes you have mounted. If a volume didn't mount properly, it is possible to find "name" and "name_1" entries, and for actual files to now reside there.
    Another utility I like is from OmniGroup
    http://www.omnigroup.com/omnidisksweerer which should easily show where space is used.
    For books, Missing Manual, and O'Reilly OS X for Unix Geeks
    http://oreilly.com/catalog/9780596520625/index.html
    http://books.slashdot.org/books/08/02/27/1551206.shtml

  • Disk Utility and Info do not agree on capacity Used?

    Hi.
    Macbook pro 13' 2010.
    120Gb SSD.
    (320GB Harddrive in optical drive).
    The SSD  is used to mainly run O/S and has only 5 first tier files, The size of each from Info tabs are:
    11.14GB
    6.77GB
    4.07GB
    6.3MB
    8.0KB
    Total: 22GB approx.
    Disc Utility tells me that: 99.58 used . 19.6 available.
    Info tells me that:  36.06 used . 83.12 available.
    Why is there such a great difference between the amount of disk space used?
    Thanks
    Patrick.

       Re-index Macintosh HD.
       Spotlight reindexing will take a while to finish.
       System Preferences > Spotlight > Privacy
       http://support.apple.com/kb/ht2409
          About “Other”:
       http://support.apple.com/en-us/HT202867
      Note:
      If you don’t have Macintosh HD icon on the desktop,
      Finder > Preferences > General > Show these items on the desktop:
      Enable “Hard disks”.
       Discrepancy in calculating space between Finder and Disk Utility
      “Finder does not take into account the  Backups/ local snapshots,
      but disk utility includes them.”
      http://pondini.org/TM/30.html
      Disk space / Time Machine ?/ Local Snapshots
      Local backups
      http://support.apple.com/kb/ht4878

  • Can I move my files to new folders without losing playlist/play count info?

    I just moved all my mp3s to my external hard drive. Now they all have exclamation points next to them. Is there any easy way to reconnect the files than individually? I have 7000 files that I just moved, and I don't have the time to right-click on each and every one of them individually. But I don't want to lose my playlist and play count information either. What do I do?

    If you keep your music in multiple locations, there's no easy way for iTunes to keep track if you just start moving things around. If you allow iTunes to manage your files (Keep iTunes Music folder organized & Copy files to iTunes Music Folder when adding to library), then it is much easier to change the location of your music.
    1. Change the location in Preferences -> Advanced -> General: iTunes Music Folder Location.
    2. From the main interface, select Advanced -> Consolidate Music (from the menus).
    This will cause iTunes to copy all of your music to the new location. When you've verified everything is OK, then you can delete the original iTunes Music (not iTunes parent) folder. The library database will remain the the original location.
    More info here: iTunes: Moving your iTunes Music folder
    Mac mini - core duo (early 2006)   Mac OS X (10.4.8)   1 GB RAM, Apple wireless keyboard, wireless Mighty Mouse

  • ICCMP_SURVEY Show Related Partner Info

    Hi all,
    We would like to show some related partner (customer) data on the ICCMP_SURVEY/SurveyDetailSet view.
    The view has no partner info in any of its context nodes and neither does the view that we navigate from, ICCMP_SURVEY/SurveyOverview.
    The SurveyOverview view is displayed on the same page as our activity creation and therefore Parties Involved are shown on that page.
    How can I get the partner info from Parties Involved into ICCMP_SURVEY/SurveyDetailSet?
    Thanks for your help and time,
    P.

    I've solved this.
    The steps that I took (for Tasks).
    To Custom Controller BT125H_TASK/CUICSurveyCuCo I added a model node (BTPARTNERACCT) of type BTPartner.
    In view BT125H_TASK/TaskDetails I bound the node of the same name to my new CuCo node.
    To the Component Controller of ICCMP_SURVEY I added a model node (BTPARTNERACCT) of type BTPartner.
    In view ICCMP_SURVEY/SurveyDetailSet I added a new model node the same as above and bound it to that in the Component Controller.
    I added the node to the Component Interface, Interface Controller, Context.
    In WD_USAGE_INITIALIZE of the BT125H_TASK Component Controller I added the context node binding for usage 'CUICCMP_SURVEY'.
    I added the appropriate field to the appropriate configuration for display.

  • Dynamic character count info as text box resizes

    Not knowing Javascript, does anyone think this is scriptable?
    When clicked inside a text box the info panel tells you how many characters are in view in that text box and how many are overset... it doesn't however display that info if you are resizing a text box by dragging one of the handles... do you think there may be a way of getting it or having onother info panel that displays how many character are inside the text box and how many are overset and it dynamically changes the read out as the user resizes the text box.
    Regards, Tim

    I don't think Javascript can do stuff "dynamically" -- you'd have to press a button to get the updated values. This sort of things is possible with InDesign, but it'd require writing a full plugin. Writing plugins is not for the meek, the faint-hearted, or the kind of people that enjoy their sanity.
    (OTOH I've been wrong a few times: APID, Rorohiko's script extensions -- http://www.rorohiko.com/ -- can perform a few tricks that used to be plugin-only. Check their website to see if there is something that sounds like your request.)

  • Disk Utility gathers info infinitum - help?

    I need to repair permissions on my hard drive in order to get my external LaCie 500 G back up and running (I think an improper shutdown screwed it up -- I can't get any of my macs to recognize it). The problem is, that when I try start my disk utility, the gathering information process never stops. Seems to be in a loop and I have to force quit to get out.
    Everything else on my computer seems to be fine -- this is my dual 1ghz G4 that I use for editing.
    I'd greatly appreciate any ideas or solutions. Thanks.

    To repair your permissions without access to the Disk Utility, open the Script Editor in the /Applications/AppleScript/ folder and run the following:
    do shell script "diskutil repairPermissions /" with administrator privileges
    You will be asked to provide your password. To do this on an external drive, use /Volumes/volumename/ as the path; if the disk's name contains spaces or other special characters, place \" at the beginning and end of the path.
    (11931)

  • Table related to info spoke

    Hello,
    I have a data target and would like to know if any info spoke is extracting data from that particular data target.
    Please let me know if there any table used to check this case.
    Thanks in advance

    Hi Peppy,
    Go to table RSBSPOKE and enter the OHSOURCE = Target Name
    This will gove you the desired output.
    Also,Please find below the list of tables which hold the information for Info Spokes:
    RSBSPOKESELSET       InfoSpoke Directory and Selection Options
    RSBSPOKEVSELSET       InfoSpoke Directory with Selection Options and Versioning 
    RSBSPOKE            List of all InfoSpokes with attributes maintained with transaction RSBO which include the name of the Source & Target Structures 
    RSBSPOKET       List of all InfoSpokes with the Short & Long Descriptions (only one of these can be maintained). 
    RSBSTEPIDMESS       Contains all the messages that have been recorded during the execution of an InfoSpoke.  This table can be added to using the ABAP Class/Method i_r_log->add_sy_message. 
    -Vikram

  • More CPU counter info needed.

    Hi,
    I would like to know how to go about doing the %wait %idle %system %user
    states of the cpu counter. Can you please tell me about the calculation
    involved? Thanks in advance,
    Charulatha.
    Note: Thanks to all those who have replied to my earlier posts.

    Hi,
    I am calculating cpu percent as follows
    (idletime/totaltime)*100
    where totaltime = idletime+waitime+usertime+kerneltime
    on a loop eachtime I am deducting with the previous reading for each of 'time' value
    for example
    idletime = idletime - previdletime;
    previdletime = idletime;
    and the same way to all of 'time' values
    but the percentage that I am getting is between 90 - 99. In real they look like incorrect. I know that there may be a small catch here. Can you please help me out. I am new to Unix. Futher can you please tell me how to test this program, ie., how do I makesure that the values I am getting are right. Shall I run performance meter and compare those with the values that I am getting?
    Thanks is advance.
    Ram

Maybe you are looking for

  • Quality loss when bouncing in regions?

    I would like to know if there would be any loss in sound quality if had to select a few tracks on Logic 9 & bounce in region into 1 track in order to save CPU power.I would like to bounce 5 tracks of drums & make it just 1 track.What is your opinion

  • Assertion Error when an action is invoked

    We have a form which has multiple input fields as well as some dropdowns. Example Dropdown 1, Dropdown 2 When you click the value in Dropdown 1, based on it Dropdown 2 is dynamically populated. It was working fine for us previously. Somehow now when

  • HT201806 Can I use a Magic Trackpad, but not be discoverable?

    I want to use the trackpad, but I don't want the Mac Mini to be discoverable by other devices. How do I make this happen?

  • Own NC-Tool Table for Drill Export

    Hello, for my PCB manufacturer I have to supply drill data in the Excellon 2 format. The NC-Drill export tool allows only to adjust the number of integers, digits and unit format. The resulting *.drl file contains a subsequent list of tool numbers fo

  • What is the point of dashboard??? help me understand please....

    i still don't understand what the point of dashboard is. why would i want to use any of these neat little gadgets when i can just use a browser. so if someone can please help me understand the point of why i would use a google widget instead of just