VirtualBox

Ignore:
Timestamp:
Nov 20, 2018 3:42:47 AM (6 years ago)
Author:
vboxsync
Message:

os2/VBoxSFFile.cpp: Went back to r126775 and got some baseline measurements. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/os2/VBoxSF/VBoxSFFile.cpp

    r75602 r75603  
    614614     *
    615615     * 0. Skip calling the host and returning zeros:
    616      *       906 ns / 3653 ticks
     616     *         906 ns / 3653 ticks
    617617     *
    618618     *    This is comparable to JFS (859 ns) and HPFS (1107 ns) and give an
    619619     *    idea what we're up against compared to a "local" file system.
     620     *
     621     *    Host build of r126639 with strict VBoxGuest.sys and VBoxSF.ifs
     622     *    circa r126775, just for establishing some actual base line for (2, 3, +):
     623     *         (a) 39095 ns / 156757 ticks - VbglR0SfFsInfo.
     624     *         (b) 35074 ns / 140880 ticks - VbglR0SfPhysFsInfo.
    620625     *
    621626     * 1. Having shortcircuted the host side processing by faking a success when
     
    659664     *          27472 ns / 110237 ticks - RTSEMEVENTMULTI
    660665     *          26550 ns / 106831 ticks - RTSEMEVENT
    661      */
    662 #if 0
     666     *
     667     *    Gain since 0a: 12545 ns / 49926 ticks / 32%
     668     *    Gain since 0b:  8524 ns / 34049 ticks / 24%
     669     *
     670     */
     671#if 1
    663672    APIRET rc;
    664673    PSHFLFSOBJINFO pObjInfo = (PSHFLFSOBJINFO)VbglR0PhysHeapAlloc(sizeof(*pObjInfo));
     
    668677        uint32_t cbObjInfo = sizeof(*pObjInfo);
    669678
    670         int vrc = VbglR0SfFastPhysFsInfo(&g_SfClient, &pFolder->hHostFolder, pSfFsd->hHostFile,
    671                                          SHFL_INFO_FILE | SHFL_INFO_GET, &cbObjInfo, (PSHFLDIRINFO)pObjInfo);
     679        int vrc = VbglR0SfFsInfo(&g_SfClient, &pFolder->hHostFolder, pSfFsd->hHostFile,
     680                                 SHFL_INFO_FILE | SHFL_INFO_GET, &cbObjInfo, (PSHFLDIRINFO)pObjInfo);
    672681        if (RT_SUCCESS(vrc))
    673682        {
     
    943952    else
    944953        rc = ERROR_ACCESS_DENIED;
     954
     955    RT_NOREF(fIoFlags);
    945956    LogFlow(("FS32_NEWSIZEL: returns %u\n", rc));
    946957    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette