OpenVZ Forum


Home » General » Support » Content of /proc/self/status
Re: Content of /proc/self/status [message #32015 is a reply to message #32006] Thu, 17 July 2008 11:02 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

OK, I understand the problem.
You can fix it by recompiling your kernel.

Please, find in linux/fs/proc/array.c file following strings:
#ifdef CONFIG_VE
        if (ve_is_super(get_exec_env()))
                buffer += sprintf(buffer,
                                "envID:\t%d\n"
                                "VPid:\t%d\n"
                                "PNState:\t%u\n"
                                "StopState:\t%u\n",
                                p->ve_task_info.owner_env->veid,
                                task_pid_vnr(p),
                                p->pn_state,
                                p->stopped_state);
#endif


And just remove "if (ve_is_super(get_exec_env()))" string.

I don't know why this was done in 2.6.24 kernel. Could you possibly fill the bug here http://bugzilla.openvz.org/.

P.S. you can obtain envID number for example via /proc/user_beancounters
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: MZ mismatch on migration with Stock Kernels
Next Topic: Network Suggestion Please
Goto Forum:
  


Current Time: Sun Sep 21 23:32:43 GMT 2025

Total time taken to generate the page: 0.13493 seconds