• CozWeAreFriends Banner. Nice isn't it?
  • CozWeAreFriends Banner. Nice isn't it?
  • Oracle SQL to generate maximum/high CPU on OVM Guest

    Posted on July 18th, 2015 by fath

    Hi All,

    There was a time during my project migrating our Oracle database servers to Oracle Virtual Machine (OVM) Guest (VM) that I had an issue regarding how the CPU works. Consider this scenario, you already provisioned 4 VCPUs to your guest running on Windows Server 2008 and then suddenly there is a need to increase the CPU since your Oracle database (oracle.exe) is starving for more processing power. What you did is simply increase the Guest’s VCPU on the fly through your OVM Manager console. The CPU somehow is reflected to your Windows OS (CPU in your task manager changed from 4 to 8 cores) but your oracle.exe process remained utilizing maximum 4 cores and not growing into the new 4 cores.

    I had searched through MOS and Google but cannot find much information related to the scenario except for some documentations regarding Guest sort-of bug but it however was affecting earlier version of OVM.

    Based on our testing in the environment, we found out that there’s no way to let our Oracle database process to switch to 8 VCPUs dynamically except after OS reboot. To test this, we had to ensure that our oracle.exe will initially consume maximum 4 CPUs and we tried to increase the VCPU afterwards.

    It was too bad that the database size was not that big hence I could not figure out how to simulate very high load in an easy way. So what I did was to use the following SQL so that the CPU retained at maximum all the time. I hope it will help anyone of you who is looking for the same answer.

    *Note: you may not want to run this in your production environment.

    select /*+ PARALLEL(100) */ distinct a.obj#, a.obj#

    How to sort process running in HP-UX server by Memory utilization (RSS)

    Posted on April 30th, 2012 by fath

    Hello All,

    Regarding the topic that I posted, run the Glance command. You will see by default, the processes listed in the screen are sorted by CPU usage. You may use this settings if you want to see which program/application is running active at any instance time. But what if the server memory is spiking all the time and you need to know which application is causing that? The investigation can be started by looking into process that consumes the largest memory.

    Once you are in Glance, then hit “o” and you will see the image below right at the bottom of the screen. Press 1.

    After getting into the page below, press “down” arrow until you reach “Sort key” option. Then type in “rss” and hit enter.

    The alert below will show up. Press “y” to save this setting as default.

    You will be redirected to the initial Glance page. Now, the processes are already sorted by the memory utilization.

    Hope this helps. Cheers! 🙂