VirtualBox

Changeset 29029 in vbox for trunk


Ignore:
Timestamp:
May 4, 2010 2:37:11 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61069
Message:

AsyncCompletion: Only reopen files on Windows. It is the only host which needs it. Print the maximum number of requests the host can handle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp

    r28947 r29029  
    328328              ("Invalid state of the I/O manager\n"));
    329329
     330#ifdef RT_OS_WINDOWS
    330331    /*
    331332     * Reopen the files of all assigned endpoints first so we can assign them to the new
     
    342343        pCurr = pCurr->AioMgr.pEndpointNext;
    343344    }
     345#endif
    344346
    345347    /* Create the new bigger context. */
     
    378380    }
    379381
     382#ifdef RT_OS_WINDOWS
    380383    /* Assign the file to the new context. */
    381384    pCurr = pAioMgr->pEndpointsHead;
     
    388391        pCurr = pCurr->AioMgr.pEndpointNext;
    389392    }
     393#endif
    390394
    391395    if (RT_FAILURE(rc))
     
    540544             * and put the rest on the pending list again.
    541545             */
    542             if (RT_UNLIKELY(!pEpClass->fOutOfResourcesWarningPrinted))
    543             {
    544                 pEpClass->fOutOfResourcesWarningPrinted = true;
    545                 LogRel(("AIOMgr: The operating system doesn't have enough resources "
    546                         "to handle the I/O load of the VM. Expect reduced I/O performance\n"));
    547             }
    548 
    549546            for (size_t i = 0; i < cReqs; i++)
    550547            {
     
    581578            }
    582579
    583             LogFlow(("Removed requests. I/O manager has a total of %d active requests now\n", pAioMgr->cRequestsActive));
    584             LogFlow(("Endpoint has a total of %d active requests now\n", pEndpoint->AioMgr.cRequestsActive));
     580            /* Print an entry in the release log */
     581            if (RT_UNLIKELY(!pEpClass->fOutOfResourcesWarningPrinted))
     582            {
     583                pEpClass->fOutOfResourcesWarningPrinted = true;
     584                LogRel(("AIOMgr: The host doesn't has enough resources "
     585                        "to handle the I/O load of the VM. Expect reduced I/O performance\n"
     586                        "The maximum number of async I/O requests is %u\n", pAioMgr->cRequestsActive));
     587            }
     588
     589            LogFlow(("Removed requests. I/O manager has a total of %u active requests now\n", pAioMgr->cRequestsActive));
     590            LogFlow(("Endpoint has a total of %u active requests now\n", pEndpoint->AioMgr.cRequestsActive));
    585591        }
    586592        else
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