Solved

System mode CPU time in Linux

Posted on 2009-07-09
3
323 Views
Last Modified: 2012-05-07
Hello Experts,
I am analyzing performance on a linux server and have noticed that a majority of the CPU time is allocated to system mode execution.  Normally (ie, in Windows for me), I would start to look at whether drivers are up to date, fragmentation was an issue, etc.   My question is - is there anything to tune on a Linux system that shows a high system to user mode execution ratio?  Or, is that just the way it is and I should look elsewhere for problems?
0
Comment
Question by:markdolar
  • 2
3 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
Comment Utility
system time represents time spent in system calls (kernel space) and/or IO.
user time represents time spent in actual user code.

Could be your system is doing a lot of IO.
0
 

Author Comment

by:markdolar
Comment Utility
Thank you for the comment.

Certainly high I/O is suspected, but the relatively low I/O wait time makes me suspect other contributors.  I'd like to follow the trail directly into system calls for some of the peaks, but I don't know how to make that connection.   Any assistance appreciated.
0
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 500 total points
Comment Utility
I would agree, there are other things besides IO that can register as system.

You can use strace to trace a given program / process.

You can also turn on system call auditing (google linux system auditing)


0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now