OpenVZ Forum


Home » General » Support » Top Patch exists?
Re: Top Patch exists? [message #7692 is a reply to message #7687] Fri, 20 October 2006 15:22 Go to previous messageGo to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

> find ve_status function and remove one of them.

You point me in the right direction Smile

> I suppose you need vzlist.h from kernel, not vzctl one.
Sorry, i found no vzlist.h in kernel-source, and inspecting some files - i found out it's from vzctl!

the fix:
comment out the ve_status

/* char *ve_status[]= {
* "running",
* "stopped",
* "mounted"
* };
*/

and build it again.

then you can use the 2 builed tools: ps and top

# ps -E <VEID>
VEID PID TTY STAT TIME COMMAND
<VEID> 13107 ? S 0:00 init [2]
<VEID> 14404 ? S 0:00 /sbin/syslogd
<VEID> 14532 ? S 0:00 /usr/sbin/exim4 -bd -q30m
<VEID> 14539 ? S 0:00 /usr/sbin/cron

# top -e -n1, gives me a N/A, nor VEID is printed :-/

PID USER PRI NI SIZE RSS SHARE VEID STAT %CPU %MEM TIME CPU COMMAN
1 root 16 0 2656 536 456 N/A S 0.0 0.0 0:00 0 init
[...]

Thanks!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FC6 VPS
Next Topic: OpenSuse 10 template
Goto Forum:
  


Current Time: Wed Jul 31 16:27:28 GMT 2024

Total time taken to generate the page: 0.02652 seconds