Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a rogue Apache process running on a Centos 6 Linux server, which is running up to 55% CPU and wondered how I can scrutinise exactly what function(s) it is performing? From the 'top' command I have its process ID, but how can I drill in to what it's up to?
Thank you
If you really want to see what it's doing, get familiar with the strace command. It will show you the system calls your process is making, but I imagine it would be a terrible tool for finding out performance issues. For that, take a look at something like gprof.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have Chromium running on an embedded linux ARM system. What would be the best way to reduce its memory usage? I have tried running it with the "--single-process" switch, but that did not help much.
Are there any other command line switches or tips to get chromium to use less memory?
Thank you!
Pass this flags in Arguments to reduce the chromium memory usage
--disable-gpu
You can also refer this link: https://peter.sh/experiments/chromium-command-line-switches/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
One of the data elements produced by the finger command gives information on how long a logged in session has been idle. Where does finger get that information from on RedHat? I've looked in /proc/<pid>/ but did not find anything useful, and the documentation doesn't go into the commands implementation.
So, where in the system is finger (or w) pulling this information from?
The finger program get's this information from utmp file located at /var/run/utmp.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How I can find out how much /tmp space is required by an application. Generally sometime I see /tmp is full and get error saying not able to write to /tmp. So is there any way to find out how much /tmp space is required by an application ?
There is no way. Programs use /tmp on an ad-hoc basis.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to modify sched.h to add in some scheduling algorithm. I use find / -name sched.h command finding a lot of results.But which one should I really modify ?
And in /usr/src,there are a lot of relating folders whose names are similiar. I'm using ubuntu14.04. Where are my real source code?
use uname -a to see which kernel you are currently running. After that, i would edit the /include/linux/sched.h for that kernel.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to use the command "at" to schedule a job to run at one second (or minute/hour) later. If using "-t" option, then it involves with the hassle of getting the current time etc. Is there any easy way out?
But don't suggest me to use "sleep", because the current process will exit.
Thanks for the tip.
The at program can take now+ a time unit (e.g. now+1minute) as a timespec. You won't get finer time resolution than one minute with at.