Hi David, thanks for the reply. I played a little bit more with user mode linux and I have got non zero sys times. However, I still get very wierd values with pidstat: the CPU usage can reach values even larger than 1000, while with "top" everything looks fine. I googled a little bit, but no one seems to have this problem. Does anyone have any idea about the possible cause? Cheers, Massimiliano
---------- Initial Header ----------- >From : "David Moffatt" david.moff...@access-company.com To : m...@inwind.it,"user-mode-linux-user" user-mode-linux-user@lists.sourceforge.net Cc : Date : Mon, 1 Jun 2009 09:44:50 -0700 Subject : RE: [uml-user] get process CPU kernel time / user time > Massimiliano, > > I am running 2.6.24 with a fairly generic kernel config and it works > fine for me. However, I am not using the SKAS patch on the host. > > ~ # time grep -r fred /var > /dev/null > Command terminated by signal 2 > real 1m 6.91s > user 0m 0.17s > sys 0m 0.01s > > --David. > > > -----Original Message----- > From: m...@inwind.it [mailto:m...@inwind.it] > Sent: Sunday, May 31, 2009 3:11 AM > To: user-mode-linux-user > Subject: [uml-user] get process CPU kernel time / user time > > Hi guys, > is there a way to get kernel time and user time of a process running > inside user mode linux? I have noticed with the "time" command that the > kernel time is always 0. Moreover, with pidstat I get wierd values for > CPU % utilization (values larger than 100 %). > I am running a kernel 2.6.27-7, in skas mode. > Thanks a lot for any help you will be able to provide. > Cheers, > Massimiliano > > > ------------------------------------------------------------------------ > ------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like > Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > User-mode-linux-user mailing list > User-mode-linux-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user