VirtualBox

Ignore:
Timestamp:
Mar 3, 2016 3:28:27 PM (9 years ago)
Author:
vboxsync
Message:

VBoxModBallooning.cpp: Only warn once per exceeding ballooning request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxModBallooning.cpp

    r59908 r59909  
    6565typedef struct VBOXWATCHDOG_BALLOONCTRL_PAYLOAD
    6666{
    67     /** The maximum ballooning size for the VM set last.
    68      *  Specify 0 for ballooning disabled. */
    69     unsigned long ulBalloonMaxLast;
     67    /** Last (most recent) ballooning request received. */
     68    unsigned long ulBalloonReqLast;
    7069} VBOXWATCHDOG_BALLOONCTRL_PAYLOAD, *PVBOXWATCHDOG_BALLOONCTRL_PAYLOAD;
    7170
     
    411410            && (ulBalloonReq > ulBalloonMax))
    412411        {
    413             serviceLog("[%ls] Warning: Requested ballooning size (%RU32MB) exceeds set maximum ballooning size (%RU32MB), limiting ...\n",
    414                        pMachine->strName.raw(), ulBalloonReq, ulBalloonMax);
     412            if (pData->ulBalloonReqLast != ulBalloonReq)
     413                serviceLog("[%ls] Warning: Requested ballooning size (%RU32MB) exceeds set maximum ballooning size (%RU32MB), limiting ...\n",
     414                           pMachine->strName.raw(), ulBalloonReq, ulBalloonMax);
    415415        }
    416416
     
    429429
    430430            vrc = balloonSetSize(pMachine, ulBalloonCur);
    431             if (RT_SUCCESS(vrc))
    432                 pData->ulBalloonMaxLast = ulBalloonMax;
    433431        }
     432
     433        pData->ulBalloonReqLast = ulBalloonReq;
    434434    }
    435435    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