Count number of disk accesses

Hi,
I'm facing a problem while coding some stuff for my thesis. I need to count the number of disk accesses. I know there's clock_t to do that in C++, but I cant seem to find any equivalent in Java. Can someone please help me in this matter? Thank you very much.

You can't do that in pure java. So if you really wantd it, you would need to learn JNI.Even then: most disc drivers use caching (read ahead) and most OSes
try to be smart too when it comes to raw disc access. Without any
kernel access it can't be done.
OTOH, most disc drivers keep some form of statistics that can be
queried.
kind regards,
Jos

Similar Messages

  • Document Directory 'Number of Times Accessed' count

    Not really an api question, but i couldnt find anything else that matched better...
    Is the process that updates the Number of Times Accessed count a batch process and if so, how often does it run?
    The reason i ask is that i have some docs in my directory whose count is remaining zero, even after I have accessed them, whilst others whose count is increasing over time quite happily.
    Does anyone have any ideas why this might be the case?
    thans

    No, I think what's going on is that rather than update the counter every time a user clicks through, we use a randomized algorithm where there's a 1 in N chance that the portal will add N to the count. For example if N is 5 and you open a document 5 times you would expect to see the counter behave something like: 0 0 0 5 5
    This means there's a margin of error (think opinion polls) but the margin decreases as the count increases, so you might know a given document has been accessed 12,450 times with a 5% margin of error. The benefit is that we reduce the load on the database for this particular SQL update by a factor of N. I believe there's a setting somewhere to modify N if you need more accuracte counts, in fact you can set it to 1 if you need a precise count.

  • Disk Access Failed while Installing Solaris Container.

    I have setup 5 guest domains together with the Control Domain.
    $ ldm list
    Name State Flags Cons VCPU Memory Util Uptime
    primary active -t-cv SP 4 4G 0.8% 2d 2h 15m
    secondary active -t--v 5000 4 2G 0.5% 3h 5m
    dmz active -t--- 5001 8 2G 0.0% 46m
    sunray inactive -----
    application inactive -----
    identity active -t--- 5002 4 4G 0.1% 1h 2m
    In each of the guest domain, I plan to install a number of Solaris Containers to run different applications. While installing one Solaris container (zoneadm �z <zone name> install) in dmz domain, I start the installation/configuration (either zoneadm �z <zone name> install or zlogin �C <zone name>) of another Solaris container in identity domain. Everything starts OK until half way I get an error message as follow:
    Jun 13 18:33:16 dmz vdc: NOTICE: [1] disk access failed.
    The installation of the Solaris Container in dmz halts as soon as I see the message above. Nothing will work except a force stop in the Control Domain using ldm stop �f dmz and restart.
    What happen to the Solaris Container installation/configuration in identity domain? It either continues the process without error or fails with the same error message shortly after. For example,
    Jun 13 18:33:24 identity vdc: NOTICE: [1] disk access failed.
    The vdisks for each guest domain are setup by following the steps on section �Using ZFS Over a Virtual Disk� in LDoms 1.0 Administration Guide. Each guest domain is booted from a disk image in the Control Domain and has two 9GB data vdisks (mapped to two physical 9GB disks on A5200 disk array) running ZFS striping. Each guest domain vdisks are serviced by a separate vdisk server.
    Any idea?

    I am not sure if multiple virtual disk servers are officially supported under current LDoms release.
    I had tried using only one virtual disk server. The same problem exhibited. I thought may be the vds was not able to keep up with the virtual disk I/O. That's why I setup multiple vds.

  • What is a best practice for counting number of payments in Payroll Run?

    I'm trying to get a feel for what people are using as a means for counting number of payments being created during a payroll run.  I would like to get a total number of checks, direct deposits, wires and zero net checks.  My initial thought is to use the Pre-DME number "Selected and Evaluated Persons".  This number seems to always match the number of persons "Selected" and "Evaluated" in posting to FI/CO.
    Since many companies are restricting use of SE16 and access to many of the BT tables is locked down, I would like to use something that the end user has access to and can easily use.  I don't believe the spools from RFFOUS_C and T are appropriate since it would have overflow pages (2 page REM Statements) in that number and thus would not be an accurate reflection of total number of payments.
    I would appreciate your insight and thoughts on this topic.
    Thanks!

    Hello Jennie,
    This is what we do every payroll:
    1. After running live payroll and before exiting our users run wage type reporter /559 to get the payroll net pay. They also run Postings to FICO simulation run to check payroll net pay GL account. This match all the time. So this is the first pass.
    2. They finish all subsequent activities in PRD run upto RFFOUS_T.
    3. We have developed a custom report which almost looks like REGUH which gives the net pay details by every payment method and amount to be deposited or paid. We match this report from the output we received from step 1.
    4. Run postings to FICO live and check the payroll net pay GL account for final validation.
    The steps might sound tedious but of a great use.
    Arti

  • Bad number in disk label?

    I am attempting to install Sol.8 on a sparc 10. when I attempt to boot from the cdrom I receive this error:" Bad magic number in disk label
    Can't open disk label package"
    I can identify the cdrom with the probe-scsi command. I relize that this is being caused because the disk has not yet been formated. Any thoughts on how to format this new disk without accessing the cdrom?Any thoughts would be appreciated!

    Looks like your cdrom dive or cd media is defective. Probe scsi will detect the cdrom hardware but can't verify its reading ability .Media can be checked by using it on another system and trying to boot with cd . For cdrom try using another drive or try cd lens cleaning.
    Hemant
    http://www.adminschoice.com

  • Need to re-install CS5.5 on my new hard drive. Serial number from disk package not working.

    I need to re-install CS5.5 on my new hard drive. Serial number from disk package not working.

    if there's a problem with the number of installations, you'll see a message about an excess activation problem.
    if that's what you're seeing, contact adobe support for an activation count reset, https://helpx.adobe.com/contact.html
    otherwise, attach a screenshot of the error message or quote it.

  • Firefox is using large amounts of CPU time and disk access, and I need to know how to shut down most of this so I can actually use the browser.

    Firefox is a very busy piece of software. It's using large amounts of CPU time and disk access. It puts my usage at low priority, so I have to wait for some time to be able to use my pointer or keyboard. I don't know what it uses all that CPU and disk access time for, but it's of no use to me. It often takes off with massive use of resources when I'm not doing anything, and I may not have use of my pointer for several minutes. How can I shut down most of this so I can use the browser to get my work done. I just want to use the web site access part of the software, and drop all the extra. I don't want Firefox to be able to recover after a crash. I just want to browse with a minimum of interference from Firefox. I would think that this is the most commonly asked question.

    Firefox consumes a lot of CPU resources
    * https://support.mozilla.com/en-US/kb/Firefox%20consumes%20a%20lot%20of%20CPU%20resources
    High memory usage
    * https://support.mozilla.com/en-US/kb/High%20memory%20usage
    Check and tell if its working.

  • Time Capsule disk access SLOW!   2TB - Dual band

    I have a Time Capsule (2TB, Dual Band, Firmare at 7.4.2)
    Its been working like a dream, backing up 3 Macs for the last 8 months.
    I also use it for connecting two or three other disks via USB and then making those accessible over the LAN, and there is also about 100GB of data on the Time capsule disk itself that i use as a dump for files so i can get to them from anywhere on my LAN.
    Lately I started to notice EXTREMELY slow disk access, even when i am connected via ethernet (1000 base) - and equally when I am connected via wifi (n)
    for example, copying over a 2Mb photo can take minutes when it should take seconds.
    i've been trying to figure out whats going on here for a while and so i checked out the sizes of the backup files.. the sparseimages that time machine creates.
    one of them was nearly 1TB, while another was around 500GB and the other was around 120GB
    that plus my data meant there was only about 300GB free on the 2TB disk.
    I have a feeling the slowness could be down to extreme fragmentation of the drive... ??
    so i decided to dump the backup files and copy off my other data and do a erase of the disk and start again.. but get this.. i can't even delete the 1TB file ! I have been trying for about 3 days now and it just will not delete.. i get the Deleting msg box and it just sits there, literally ALL night...
    i know it isn't just hanging on the Mac (10.6.4) because deleting the other two images also took a long time (but not this long!)
    i can't just wipe the disk now because i can't get my other data off either.. I have tried copying it over the network and onto a USB disk connected directly to the Time Capsule, but 3 days later and i'm still copying files..
    to put some context into this, I copied over 1.8Gb today and it took about 4 hours...
    has anyone had this problem before?? what on earth is going on?? is it down to fragmentation, or something else?? the TC has been working fine up until a few weeks ago when i started to notice slow speed.
    any ideas ?
    thanks
    Adam

    if anyone ever has this issue ....
    it must have been EXTREME fragmentation. I bought another 2TB external disk, connected it to the TC, did a complete archive, which took around 24 hours... then i wiped the TC and put stuff back... it now works fine again...

  • Error "NOTICE: [0] disk access failed" during guest domain network booting

    Hi,
    Could you please tell me what is the problem with my configuration?
    I created guest domain on my T1000 server.
    As a disk I used disk from disk array: /dev/dsk/c0t18d0
    I added disk using commands:
    # ldm add-vdsdev /dev/dsk/c0t18d0 vol1@primary-vds0
    # ldm add-vdisk vdisk1 vol1@primary-vds0 myldom1
    # ldm set-variable auto-boot\?=false myldom1
    # ldm set-variable boot-device=/virtual-devices@100/channel-devices@200/disk@0 myldom1
    Then I logged to guest domain and booted from network to install OS from JumpStart server:
    {0} ok boot net - install
    Boot device: /virtual-devices@100/channel-devices@200/network@0 File and args: - install
    Requesting Internet Address for 0:14:4f:f9:78:19
    SunOS Release 5.10 Version Generic_137137-09 64-bit
    Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    Configuring devices.
    NOTICE: [0] disk access failed.
    Checking rules.ok file...
    Using begin script: install_begin
    Using finish script: patch_finish
    Executing SolStart preinstall phase...
    Executing begin script "install_begin"...
    Begin script install_begin execution completed.
    ERROR: No disks found
    - Check to make sure disks are cabled and powered up
    Solaris installation program exited.
    Configuration:
    [root@gt1000a /]# ldm list-bindings
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    primary active -n-cv- SP 4 2G 0.5% 2h 23m
    MAC
    00:14:4f:9f:71:4e
    HOSTID
    0x849f714e
    VCPU
    VID PID UTIL STRAND
    0 0 5.3% 100%
    1 1 0.5% 100%
    2 2 0.5% 100%
    3 3 0.4% 100%
    MAU
    ID CPUSET
    0 (0, 1, 2, 3)
    MEMORY
    RA PA SIZE
    0x8000000 0x8000000 2G
    VARIABLES
    keyboard-layout=US-English
    IO
    DEVICE PSEUDONYM OPTIONS
    pci@780 bus_a
    pci@7c0 bus_b
    VCC
    NAME PORT-RANGE
    primary-vcc0 5000-5100
    CLIENT PORT
    myldom1@primary-vcc0 5000
    VSW
    NAME MAC NET-DEV DEVICE DEFAULT-VLAN-ID PVID VID MODE
    primary-vsw0 00:14:4f:fa:ca:94 bge0 switch@0 1 1
    PEER MAC PVID VID
    vnet0@myldom1 00:14:4f:f9:78:19 1
    VDS
    NAME VOLUME OPTIONS MPGROUP DEVICE
    primary-vds0 vol1 /dev/dsk/c0t18d0
    CLIENT VOLUME
    vdisk1@myldom1 vol1
    VCONS
    NAME SERVICE PORT
    SP
    NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
    myldom1 active -n---- 5000 12 2G 0.1% 2h 18m
    MAC
    00:14:4f:f9:e7:ae
    HOSTID
    0x84f9e7ae
    VCPU
    VID PID UTIL STRAND
    0 4 0.5% 100%
    1 5 0.0% 100%
    2 6 0.0% 100%
    3 7 0.0% 100%
    4 8 0.0% 100%
    5 9 0.0% 100%
    6 10 0.0% 100%
    7 11 0.0% 100%
    8 12 0.0% 100%
    9 13 0.0% 100%
    10 14 0.0% 100%
    11 15 0.0% 100%
    MEMORY
    RA PA SIZE
    0x8000000 0x88000000 2G
    VARIABLES
    auto-boot?=false
    boot-device=/virtual-devices@100/channel-devices@200/disk@0
    NETWORK
    NAME SERVICE DEVICE MAC MODE PVID VID
    vnet0 primary-vsw0@primary network@0 00:14:4f:f9:78:19 1
    PEER MAC MODE PVID VID
    primary-vsw0@primary 00:14:4f:fa:ca:94 1
    DISK
    NAME VOLUME TOUT DEVICE SERVER MPGROUP
    vdisk1 vol1@primary-vds0 disk@0 primary
    VCONS
    NAME SERVICE PORT
    myldom1 primary-vcc0@primary 5000
    [root@gt1000a /]#
    Kind regards,
    Daniel

    Issue solved.
    There was a wrong disk name:
    primary-vds0 vol1 /dev/dsk/c0t18d0
    I changed to c0t18d0s2 and now I sucessfuly installed OS from Jumpstart.

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how

    Hello Deva
    If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
    Now Choose any of the below option
    1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
    Now use calculated key figure in Query Designer based on logic
    IF counter = 1 THEN counter ELSE 0
    OR
    2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
    Award points if it solves your problem
    Revert back in case of further assistance...
    Thanks
    Tripple k

  • How to Count number of words in a file....

    Hi Experts,
    I have uploaded the text file, from the application server, like this: 
    call function 'GUI_UPLOAD'
      exporting
        filename = LV_ip_FILENAME
      tables
        data_tab = LT_FILETABLE.
    The text file contains some number character words....  like "sap labs india..... "
    Now, I wanted to count number of words in an internal table  LT_FILETABLE....  can anybody help me?

    Hi,
    Special Characters in Regular Expressions
    The following tables summarize the special characters in regular expressions:
    Escape character
    Special character Meaning
    Escape character for special characters
    Special character for single character strings
    Special character Meaning
    . Placeholder for any single character
    C Placeholder for any single character
    d Placeholder for any single digit
    D Placeholder for any character other than a digit
    l Placeholder for any lower-case letter
    L Placeholder for any character other than a lower-case letter
    s Placeholder for a blank character
    S Placeholder for any character other than a blank character
    u Placeholder for any upper-case letter
    U Placeholder for any character other than an upper-case letter
    w Placeholder for any alphanumeric character including _
    W Placeholder for any non-alphanumeric character except for _
    [ ] Definition of a value set for single characters
    [^ ] Negation of a value set for single characters
    [ - ] Definition of a range in a value set for single characters
    [ [:alnum:] ] Description of all alphanumeric characters in a value set
    [ [:alpha:] ] Description of all letters in a value set
    [ [:blank:] ] Description for blank characters and horizontal tabulators in a value set
    [ [:cntrl:] ] Description of all control characters in a value set
    [ [:digit:] ] Description of all digits in a value set
    [ [:graph:] ] Description of all graphic special characters in a value set
    [ [:lower:] ] Description of all lower-case letters in a value set
    [ [:print:] ] Description of all displayable characters in a value set
    [ [:punct:] ] Description of all punctuation characters in a value set
    [ [:space:] ] Description of all blank characters, tabulators, and carriage feeds in a value set
    [ [:unicode:] ] Description of all Unicode characters in a value set with a code larger than 255
    [ [:upper:] ] Description of all upper-case letters in a value set
    [ [:word:] ] Description of all alphanumeric characters in a value set, including _
    [ [:xdigit:] ] Description of all hexadecimal digits in a value set
    a f
          v Diverse platform-specific control characters
    [..] Reserved for later enhancements
    [==] Reserved for later enhancements
    u2192 More
    Special characters for character string patterns
    Special character Meaning
    Concatenation of n single characters
    {n,m} Concatenation of at least n and a maximum of m single characters
    {n,m}? Reserved for later enhancements
    ? One or no single characters
    Concatenation of any number of single characters including 'no characters'
    *? Reserved for later enhancements
    + Concatenation of any number of single characters excluding 'no characters'
    +? Reserved for later enhancements
    | Linking of two alternative expressions
    ( ) Definition of subgroups with registration
    (?: ) Definition of subgroups without registration
    1, 2, 3 ... Placeholder for the register of subgroups
    Q ... E Definition of a string of literal characters
    (? ... ) Reserved for later enhancements
    for more details please refer the following,
    [http://help.sap.com/abapdocu_70/en/ABENREGEX_SYNTAX_SIGNS.htm]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/902ce392-dfce-2d10-4ba9-b4f777843182?QuickLink=index&overridelayout=true]
    Thanks,
    Renuka S.

  • How to count number of edges using PXIe-6363 Counters

    Hello,
    I am trying to count number of edges in a test signal in a 50 ms duration. I am using PXIe-6363 card and connecting the test signal to CTR 0 SRC (PFI 8). Is it a correct connection? What else do I need hardware-wise to make a correct set up for this application?
    Thanks
    Jeet
    Solved!
    Go to Solution.

    Hi Jeet,
    When you say interrupt signal, do you mean a pulse that will pause your counter task? If that is the case, and you want to pause your task with a digital pulse, you need to use the DAQmx Trigger Property Node and set that to Pause, Trigger Type. As you said, you can connect that signal coming from the chip to any PFI line and then set that line as the source of the property node.
    There is an example that you can use that does exactly what I just described. This example is called Count Digital Events-Pause Trig.vi, and you can find it by going to Help>Find Examples..., then on the NI Example Finder window go to the Browse tab and navigate in the folders to Hardware Input and Outpout\DAQmx\Counter Measurements\Count Digital Events.
    Regards.
    Jorge
    Applications Engineer
    National Instruments
    Certified LabVIEW Associate Developer (CLAD)

  • How to count number of raw & put result top of page?

    I try to count number of table raw it work fine  but when I wont to put result top of page it dose not work
    only count one table raw
    REPORT  ZTEST.
    DATA: it_sflight TYPE TABLE OF Sflight WITH HEADER LINE  .
    DATA counter TYPE i VALUE 0.
    start-of-SELECTION.
    SELECT-OPTIONS: carID for it_sflight-carrid.
    SELECT-OPTIONS: connID for it_sflight-connid.
    SELECT * FROM Sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight 
    WHERE carrid IN carID and connID IN connid.
    loop at it_sflight .
      counter = counter + 1 .
      write: /5 it_sflight-carrid,sy-vline,
               30 it_sflight-connid,sy-vline,
                  45 it_sflight-fldate,sy-vline,
                    60 it_sflight-currency,sy-vline.
    ULINE.
    endloop.
    end-of-SELECTION.
    TOP-OF-PAGE .
    *START-OF-SELECTION.
    WRITE:  'Total Rows : ', counter.
    ULINE.
    WRITE: /5 'Carrid',sy-vline,
            30 'Connid',sy-vline,
            45 'Fldate',sy-vline,
              60 'Currency',sy-vline.
    ULINE.
    how can I solve this problem ?

    Hi
    Instead of using counter in a loop use describe statement.
    Describe it_sflight.
    the no of rows will get populated in the system variable sy-tfill.
    DATA: it_sflight TYPE TABLE OF Sflight WITH HEADER LINE  .
    DATA counter TYPE i VALUE 0.
    start-of-SELECTION.
    SELECT-OPTIONS: carID for it_sflight-carrid.
    SELECT-OPTIONS: connID for it_sflight-connid.
    SELECT * FROM Sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight
    WHERE carrid IN carID and connID IN connid.
    DESCRIBE TABLE it_sflight.
    loop at it_sflight .
      counter = counter + 1 .
      write: /5 it_sflight-carrid,sy-vline,
               30 it_sflight-connid,sy-vline,
                  45 it_sflight-fldate,sy-vline,
                    60 it_sflight-currency,sy-vline.
    ULINE.
    endloop.
    end-of-SELECTION.
    TOP-OF-PAGE .
    *START-OF-SELECTION.
    WRITE:  'Total Rows : ', sy-tfill.
    ULINE.
    WRITE: /5 'Carrid',sy-vline,
            30 'Connid',sy-vline,
            45 'Fldate',sy-vline,
              60 'Currency',sy-vline.
    ULINE.
    Thanks
    Rahul jain
    Edited by: Rahuljn on Feb 2, 2011 10:58 AM

  • How to count number of ones in table

    Hello,
     i created one table 16x32 each cell is updating 1 byte of data,how to count number of one in all cell,and is it right way to calculate check sum??
    thank you

    The simplest way is to call GetTableCellRangeValues with VAL_ENTIRE_TABLE as the range, next summing array elements.
    But I don't understand your comment on checksum, so this may not be the more correct method for your actual needs: can you explain what do you mean?
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • Dvrcast load times - is HDS a solution?

    We are streaming H.264 video to the dvrcast application using RTMP streaming.  Everything is working fine, though we are noticing some unacceptable load times when loading large videos for playback that have been recorded this way.  I found http://fo

  • WSRM messages stuck in PI with HTTP code:403 forbidden

    Hi Guys, We have interface from FILE to WS where file is being sent from third party system to ECC in which we are facing issue. This service uses HTTPS protocol and while creating the binding in ECC SOAMANAGER we have used communication security as

  • REF Cursor in Forms 4.5

    I am using forms 4.5. I have a function whcih returns cursor. I would like to store the return values in Forms cursor variable and iterate thru the result set. When I declare TYPE cname IS REF CUROSOR I get compilation error. Is it possible to declar

  • Are phone numbers 10 digits or 11? Do I need to record a preceding 1 (when area code is diff than mine)?

    When putting in new contacts, do I need to enter a "1" before the 10 digit phone number, or does iPhone know that a 1 needs to dialed before an area code?

  • Lumia 1020 photo sharing problems

    When I share a photo to another phone, the recipient can't open it.  If someone sends me a photo, my phone won't open it.  What's the problem and how do I fix it?