LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2011, 03:11 PM   #1
baxzius
Member
 
Registered: Jan 2010
Location: India
Distribution: ubuntu
Posts: 134
Blog Entries: 1

Rep: Reputation: 21
cpu load high!!!! on qemu :(


is there any way to decrease the cpu load during qemu execution?
 
Old 08-08-2011, 05:15 PM   #2
culaterout
Member
 
Registered: Jul 2006
Location: colorado
Distribution: Debian, Arch Linux, Linux Mint, Ubuntu, Fedora, Suse, Mepis, Redhat, Sayabon, mandrake and android (
Posts: 192

Rep: Reputation: 29
Best I could find on emulator...

Seems power usage in this case was causing a problem

http://opensolaris.org/jive/thread.jspa?threadID=33224

Good Luck...

P.S... Looked around

Furthermore, there are three options for running QEMU:



Pros


Cons

QEMU (plain)


Doesn't require a kernel module


Not as fast as the others

QEMU + KQEMU


Faster


Requires the KQEMU module
+ granting the user R/W access to /dev/kqemu

QEMU / kvm


Fastest


Requires the kvm module
+ x86 CPU w/ virtualization extensions
+ granting the user R/W access to /dev/kvm



Best I could get is its not really a commercial Emulator.... So I does not provide all the bells and whistles lets say of Vmware...


Other Comments: Using Qemu other issues were: Mouse over responds, Gaming, Graphics Intense usage and the APCI power for laptop computers...



For Best results I would say use Slackware, Arch Linux or Gentoo... There is no real answer to make qemu work faster in a Graphics intense game or video....
 
Old 08-08-2011, 07:51 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
You can limit the processing time or value if you want. Darn it, I can't remember the tool used. It has been posted a few times on these forums.

The solution is really to use a more advanced virtual machine.
 
Old 08-09-2011, 06:31 PM   #4
culaterout
Member
 
Registered: Jul 2006
Location: colorado
Distribution: Debian, Arch Linux, Linux Mint, Ubuntu, Fedora, Suse, Mepis, Redhat, Sayabon, mandrake and android (
Posts: 192

Rep: Reputation: 29
Quote:
Originally Posted by jefro View Post
You can limit the processing time or value if you want. Darn it, I can't remember the tool used.
Challenging Question,

I put my brain to work...



Best Documentation I could find on running Qemu Virtual Machine was not from Qemu, but from Novell and its Linux Suse Server....

Novell Suse

Comments: In reading the documentation I found kvm-Qemu does use a tool to measure and control CPU actions... This tool is vrt-manager.. Another Illustration to improving performance is do a Change Memory size or do a Virtual Memory Dump...




Secondly, I came across how to slow down emulation which in turn slows down cpu usage. Command is Brake Qemu....

Qemu Brake


Comment: This seems to be used for Video Games... Question remains can you apply this to a Server driven Application???

Last edited by culaterout; 08-09-2011 at 06:33 PM.
 
Old 08-09-2011, 08:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Sorry, it is not a qemu tool that I meant. It was a linux way to control processes. I keep wanting to say top but that isn't it but some small name. Darn, I just can't remember it.
 
Old 08-11-2011, 08:19 AM   #6
culaterout
Member
 
Registered: Jul 2006
Location: colorado
Distribution: Debian, Arch Linux, Linux Mint, Ubuntu, Fedora, Suse, Mepis, Redhat, Sayabon, mandrake and android (
Posts: 192

Rep: Reputation: 29
The Commands

The first thing you have to understand is the commands you will be using. There are two commands that are useful: kill and killall. The kill command is used in conjunction with a process ID (PID) and the killall command is used in conjunction with command names. Your first reaction is most likely “How do I get the PID of an application?” Well, that will take another command.


ps - list the processes running on the system
kill - send a signal to one or more processes (usually to "kill" a process)
jobs - an alternate way of listing your own processes
bg - put a process in the background
fg - put a process in the forground

Learning Shell Job control



accton - Turns process accounting on and off. Uses the file /var/log/pacct. To turn it on type "accton /var/log/pacct". Use the command with no arguments to turn it off.
kill - Kill a process by number
killall - Send a signal to a process by name
lastcomm (1) - Display information about previous commands in reverse order. Works only if process accounting is on.
nice - Set process priority of new processes.
ps(1) - Used to report the status of one or more processes.
pstree(1) - Display the tree of running processes.
renice(8) - Can be used to change the process priority of a currently running process.
sa(8) - Generates a summary of information about users' processes that are stored in the /var/log/pacct file.
skill - Report process status.
snice - Report process status.
top - Displays the processes that are using the most CPU resources.


Process Control



< Command line - misc >

Ctrl + c
Kill the current process.

Ctrl + z
Send the current process to background. This is useful if you have a program running, and you need the terminal for awhile but don't want to exit the program completely. Then just send it to background with Ctrl+z, do whatever you want, and type the command fg to get the process back.

Ctrl + d
Log out from the current terminal. If you use this in a terminal emulator under X, this usually shuts down the terminal emulator after logging you out.

Ctrl + Alt + Del
Reboot the system. You can change this behavior by editing /etc/inittab if you want the system to shut down instead of rebooting.


Terminal Shortcuts
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
High load and high cpu kernel usage enid Linux - Server 8 09-30-2010 03:33 AM
udevd high cpu load fancylad Slackware 2 06-01-2010 07:53 AM
[SOLVED] High CPU load on I/O operation ack_iix Slackware 8 08-08-2009 06:13 AM
nvidia and high cpu load Simon Bridge Linux - Hardware 5 06-06-2006 03:25 AM
Why am I getting ?high? CPU load? pnh73 Linux - General 15 10-21-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration