OpenVZ Forum


Home » General » Support » *CLOSED* "TOP" inside a VPS
*CLOSED* "TOP" inside a VPS [message #12462] Sun, 29 April 2007 10:59 Go to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
When top is run inside a vps the output part of
"Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si"

Is the CPU "us" % calculated by the maxium amount of CPU set for the VPS i.e if the CPU was 2 GHZ but 1 GHZ was set to maxium that VPS could use. Is the % worked out by the total CPU or the CPU limit for that VPS.

Thanks


[Updated on: Fri, 04 May 2007 13:16] by Moderator

Report message to a moderator

Re: "TOP" inside a VPS [message #12464 is a reply to message #12462] Sun, 29 April 2007 13:21 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hello. The report is specific to your vps cpu utilization.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: "TOP" inside a VPS [message #12465 is a reply to message #12462] Sun, 29 April 2007 18:07 Go to previous messageGo to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
Ok thanks, also is there anyway of finding out a rootpassword for a VPS. As i am making a Control Panel like Virtuozzo and wish for them to be able to login with their root password.

Thanks.
Re: "TOP" inside a VPS [message #12466 is a reply to message #12465] Sun, 29 April 2007 18:12 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
>is there anyway of finding out a rootpassword for a VPS

Linux doesn't store the root password, so you can't view it. You can compare the md5 of the users input however.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: "TOP" inside a VPS [message #12468 is a reply to message #12465] Sun, 29 April 2007 18:30 Go to previous messageGo to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
Thats what i ment.. so how would i get the md5 of their password. What function would i need to run to grab the md5.

Thanks
Re: "TOP" inside a VPS [message #12563 is a reply to message #12462] Wed, 02 May 2007 21:56 Go to previous messageGo to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
Anyone?...
Re: "TOP" inside a VPS [message #12564 is a reply to message #12563] Wed, 02 May 2007 22:00 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
its far out of the scope/interest of openvz, but heres your answer:

http://www.faqs.org/docs/Linux-HOWTO/User-Authentication-HOW TO.html
http://tldp.org/HOWTO/Shadow-Password-HOWTO-8.html

I don't think anyone wants to open the can of worms helping you learn c programming, so they left this thread go Wink



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: "TOP" inside a VPS [message #12621 is a reply to message #12462] Fri, 04 May 2007 13:16 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

"us" is "user time" in % (i.e. what part of time was spent in user space), it has nothing to do with limits set by VE admin.


http://static.openvz.org/userbars/openvz-developer.png
Re: *CLOSED* "TOP" inside a VPS [message #12629 is a reply to message #12462] Fri, 04 May 2007 15:21 Go to previous messageGo to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
Ok how would i find out how much of their max allocated CPU they was using. E.g in percent, could i just work it out by the amount of CPU idle?

Thanks
Re: *CLOSED* "TOP" inside a VPS [message #12659 is a reply to message #12629] Sun, 06 May 2007 17:03 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

no. it is impossible to calculate real-cpu% from information available inside VE.

you need to examine /proc/vz/vestat file instead:
http://forum.openvz.org/index.php?t=tree&th=479&mid= 2771&&rev=&reveal=


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Cannot start OpenVZ on openSUSE ! plz HELPPP !
Next Topic: High Load Issues
Goto Forum:
  


Current Time: Wed Feb 21 02:56:15 GMT 2024

Total time taken to generate the page: 0.03152 seconds