Ubuntu :: Find Cumulative CPU Time For Processes For An Interval?

Feb 20, 2010

I want to find the cumulative CPU time used by each process between two points (defined by the user, e.g. running a command or clicking a button).

A first stab at this would be running

Code:
ps -eo pid,cputime

at the beginning of the interval and at the end, then doing some arithmetic on the two sets of results. But this only shows whole seconds of cputime ... and what about processes that started and stopped during the interval?

View 1 Replies


ADVERTISEMENT

Ubuntu :: Refresh A Particular Page In A Specific Time Interval?

Dec 6, 2010

How to refresh a page automatically?Say for example i need to refresh page in ubuntuforums to get new questions.I feel lazy to refresh the page often.Is it possible to refresh the page automatically in a specific time interval?I have tried ReloadEvery Firefox Add-on.But it refresh all the tabs.What i want is i want to refresh a page in a particular TAB.

View 4 Replies View Related

Ubuntu :: Get The Mouse To Continuously Click Automatically After A Set Time Interval?

Mar 21, 2010

not sure if this goes here, but is there a way to get the mouse to continuously click automatically after a set time interval? (eg, 2 seconds) i've googled and found plenty of auto-clicking software for windows, but no luck for linux.

View 2 Replies View Related

Server :: Updating Time - Recommended Interval For Connecting To The Ntp Pool?

Apr 22, 2011

I am managing a PBX which runs redhat enterprise linux. The time on it is always getting out of sync, which causes the time on the phones to display incorrectly. I can't figure out for the life of me why the time keeps changing. How can I set it to update it's time every day or two? I don't want to hit ntp.org every day, as is recommended. What's the recommended interval for connecting to the ntp pool? The kernel is Linux 2.6.9-67.0.4 (from uname -a)

View 1 Replies View Related

Software :: Changing Time Interval Of Rtorrent To Contact Tracker?

May 5, 2010

How can I change the time interval of the rtorrent for contacting the tracker server? I talk for the procedure which asks from the tracker new peers. currently in my rtorrent it is 3000 seconds which is not the best option when it comes to private trackers.

View 1 Replies View Related

Programming :: Serial Port Data Read Time Interval?

Oct 30, 2010

I am writing a C program which reads data over serial port. While reading data, if I send my data(which is a 13 byte structure) periodic with a period of 1 second for 10 times I read it without problem and I read the data 10 times as I sent and as I expectBut if I send data continuousuly(without any time interval between each sending) 10 times I can only read 1 of them(I can only read it once).

View 11 Replies View Related

Fedora Installation :: Dual Boot - Increase Time Interval Of Start Up

Mar 27, 2009

I have installed Fedora10 on my PC which had an XP. Now Fedora waits just 2-3 seconds to press any key to choose between XP and Fedora. Actually if I don't press any key it automatically begins Fedora. How can I increase this time interval?

View 3 Replies View Related

Programming :: Measure Time Of N Processes?

Oct 24, 2010

how can I measure time of N processes and N threads and then compare this time to prove that threads are faster than processes. understanding C code, or also for some good way to measure time of N processes and N threads for C.

View 5 Replies View Related

General :: Real Time Processes ?

Dec 7, 2009

I've got the following problem:

1. I start two bash windows

2. In one of them I start a script test1:

Code:

This script puts a natural number 5 times a second.

3. Then in the second bash window I type (as root):

Code:

The script test2 looks as follows:

Code:

While true; do
true;
done

During the following 15 seconds test2 is the process with the highest real-time priority. As far as I know the script doesn't perform any system calls so it shouldn't be suspended even for a minimal timeslice. My question is: why the process test1 manages to put a few numbers on the screen before test2 stops. I thought that test2 would exclusivly own the processor for 15 seconds.

View 8 Replies View Related

Ubuntu :: Starting Processes At Boot Time - Don't Start Privoxy?

Apr 27, 2010

I installed and configured privoxy - everything worked nicely when I run it manually by

Quote:
/etc/init.d/privoxy start

After restarting the computer privoxy wasn't start automatically. I checked the links in /etc/rcX.d - are o.k. I installed sysv-rc-conf - shows that for runlevel 2 - 5 privoxy is running. I changed /etc/rc2.d/S20privoxy to /etc/rc2.d/S99privoxy - to start that process at the end. I installed Boot-Up Manager. Privoxy is marked for start automatically. I added in /etc/rc.local line: /etc/init.d/privoxy start

Privoxy still doesn't turn on at boot time and every time I must start it manually. Could you tell me how could I repair this ?

View 4 Replies View Related

Ubuntu :: Standby / Suspend: Fails 2nd Time On 'Freezing User Processes'

Feb 11, 2010

I have what I think is a somewhat different failure of standby than I've seen listed on other threads, and I'm stumped.The system hangs on this for a while, then comes back to the login screen without going into standby. This ONLY HAPPENS on a SECOND standby attempt--the first standby after booting ALWAYS succeeds.The standby log doesn't indicate any failures.I had made other changes previously that temporarily got standby working consistently:/etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

View 1 Replies View Related

General :: Automatically Kill Processes That Over Time Uses 95%+ Of Resources?

May 3, 2010

I don't know about your computer but when mine is working properly no process is sucking 95%+ over time. I would like to have some failsafe that kills any processes behaving like that. This comes to mind because when I woke up this morning my laptop had been crunching all night long on a stray chromium child process.

This can probably be done as a cron job, but before I make it a full time job creating something like this I'd thought I should check here. :) I hate reinventing the wheel.

View 1 Replies View Related

Software :: Which Value Is For Highest Priority For Real-time Processes

Dec 18, 2009

I want to set my program with highest priority for real-time processes. I understand the priority for real-time processes ranges from 1-99, but I get completely confused after reading Understanding the Linux Kernel and the manual of sched_get_priority_max(): which value has higher priority? either 1 or 99. Understanding the Linux Kernel says 1 has highest priority but sched_get_priority_max() returns 99 for SCHED_FIFO and SCHED_RR policy.

View 3 Replies View Related

Programming :: Shell Script: Wait On Two Processes At The Same Time?

Mar 16, 2010

I'm writing a script that needs to spawn 2 or more processes and wait for their return status. I have a method to do this by waiting on each process individually like this:

Code:
process1 &
PID1=$!

[code]...

View 14 Replies View Related

General :: Ubuntu - Find Out Which Processes Consume Most Energy?

Aug 21, 2011

In Linux, is it possible to know which processes consume most battery energy at the moment?

View 1 Replies View Related

General :: How To Find And Kill Remote Processes

Oct 28, 2010

I am developing a daemon that is acting up and I am now unable to create any new processes (ie. I cannot start a new process to kill the other rogue processes). So, I need to be able to kill the processes from a remote machine. How do I do "kill" remotely without admin privileges? If I cannot kill my own process from a remote machine as a normal user then tell me so I can mark it as the correct answer.

View 3 Replies View Related

General :: How To Find Processes Using A Specific Port

Dec 11, 2010

how can i find on a linux system the processes that are using 8080 port (ex a web server)

View 2 Replies View Related

General :: Find Out Processes Are Using Swap Space?

Jun 21, 2011

I have a linux server top reports about 9GB of swap used:But I cannot figure where's it use swap, some google results said that top - O commad follow by p will show swap usage by process. But as shown in the above image, taking a brief sum of the SWAP column shows that > 10GB of swap is used, so where does the 9GB figure for swap usage come from? Top reports that about 96492kb of ram is used by buffers. Is there anything I can do to utilize this, instead of using swap?

View 1 Replies View Related

Networking :: Find The PID For All Processes Running For A Particular Port?

Apr 15, 2010

How can I find the PID for all processes running for a particular port?

View 3 Replies View Related

General :: Script To Find Disk Utilized Processes?

May 25, 2011

I have written a script that triggers a mail if the server load average goes beyond a specific value.

The mail contains following field Current Load average. Top 10 CPU utilized processes.

Code:
ps -auxf | sort -nr -k 3 | head -10
Top 10 Memory Utilized processes.

Code:
ps -auxf | sort -nr -k 4 | head -10

But the problem is that whenever there is any disk related activity happens the load gets high and the command (for ex.mkfs.ext3 /dev/sdb1, dd,scp,cp)which are the main cause behind the load average doesnt get displayed in top 10 CPU/Memory Utilized processes.

Is there any way of finding top 10 processes for Disk related activity?

View 14 Replies View Related

Programming :: Find Number Of Child Processes (C / POSIX)?

May 26, 2010

I'm in the process of writing a program that is a server- it will accept connections and stuff, and spawn a child process for each. However, i've run into a small problem. I do NOT want to bother with keeping track of the processes unless i need to. So, i set SA_NOCLDWAIT (#ifdef) on a SIG_IGN to the SIGCHLD handler through sigaction interface. The standard says that it the kernel will then keep track of reaping zombie processes for me (a HUGE plus). However, upon receiving a SIGINT signal, i want to stop the server from accepting new connections (done), and then wait for there to be no new connections. I was thinking of just putting a loop like so:

Code:

while((wait(NULL) != (pid_t)-1) && errno != ECHILD);

However, I'm not *sure* that this will work, especially with SIGCHLD still ignored. So how can i tell if there are still child processes? I can't find any call like int getnumchld(pid_t proc); (i wish). Plus it would be inefficient to spin on that function anyway. OTOH, i would rather *NOT* have to do the same thing in a loop with a system("ps |...>file"); read(file); etc. either. Is there a way i can portably implement this feature (I was hoping i could run it on linux and the major BSDs, at least).

TO SUM IT UP:

How can i tell if a process has no child processes if i've SIG_IGN'd SA_NOCLDWAIT'd the SIGCHLD? Is there a _reasonably_ portable way to do so? I *don't* want to manually wait for EVERY process. Maybe only those still active at the time of SIGTERM, but that requires keeping track of the number of connections and whether those have terminated...

EDIT: Does anyone know if the above code *would* work, even with SIGCHLD ignored and the kernel cleaning up zombies *for* me? I checked the manpage and it doesn't say much.

EDIT1: Note that all of the processes are in the same process group and session. SO i can find them through this as well. Perhaps even setting the uid/gid and finding all processes run by that group?

EDIT2: i have an idea if the above isn't feasible. If there is no "elegant" way to do it, i could reduce the complexity by sending a SIGUSR1 to the whole process group. Each process would then set a flag telling it to send a SIGUSR1 in reply and send a SIGUSR2 when it is done executing. Then i could keep a count of signals. Maybe that would be *easier*. Or perhaps a count of all child processes and just a termination signal to decrement the counter.

View 2 Replies View Related

General :: Find All Child Processes Of A Parent Process Given To Script As Argument?

Feb 15, 2011

well i have just started with shell scripting...how to find all child processes of a parent process given to script as argument.

View 10 Replies View Related

Ubuntu Networking :: Multiple Ip Download - Share The Download Between The Computers To Get The Cumulative Speed?

Jan 8, 2011

I am at a university where my bandwidth is severely capped. I can start several other computers near me and download at the limited speed simultaneously. Is there any way for me to share the download between the computers to get the cumulative speed?

View 1 Replies View Related

Ubuntu :: Auto-run Script At Interval?

Jul 30, 2010

I am looking for a script that will, as the title says, run any commandsive it at intervals i set, also at startup.Any help to point me in the directionof a helpful resource or some basics I can add to with direction My searches have proved fruitless so far, and I have no chance of working it out on my own

View 4 Replies View Related

Ubuntu :: Automatically Change Workspaces At Specified Interval?

Mar 14, 2010

I'm wondering if anyone is aware of a way to cycle through workspaces at a set interval.. whether it be a screen saver or other wise

View 3 Replies View Related

Ubuntu :: What Are Gmail Notifier Check Interval Units

May 13, 2010

What are the Gmail Notifier Check Interval units? Would they be in milliseconds?

View 6 Replies View Related

Ubuntu :: Point To A Two-digit Interval With Regular Expressions?

Sep 9, 2010

Is it possible to point to a two-digit interval with regular expressions?

Background:
I'm using mplayer to watch tv shows, that often have episode numbers in their names. I know how to easily add several files to the playlist by using brackets, by typing something like
$ mplayer tv/South.Park.S1.E0[1-5]*avi

Is there a way to point to files 06-13 in a single expression?

View 2 Replies View Related

Debian :: Apt-mirror Not Running At Regular Interval

Mar 27, 2016

I use apt-mirror to sync a local copy of Debian repo on my HDD. I recently reinstalled my Debian setup, and now I can't seem to make apt-mirror run at regular intervals!? As far as I can recall (and as mentioned on different sites) all I have to do is edit /etc/cron.d/apt-mirror

I tried adding the following lines, but nothing works

Code: Select all0 0,6,12,18 * * * apt-mirror    /usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log
Code: Select all0 0-23/6 * * * apt-mirror    /usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log

Also, the log file is empty!!

View 2 Replies View Related

General :: Send Email To A List Of People At A Certain Interval?

Jan 16, 2010

I want to send email to a list of people at a certain interval without getting them detected as spam.

View 2 Replies View Related

General :: Using Rhythmbox Or Vlc In 11.04 - Adjust The Interval Between Tracks On Replay?

Jun 14, 2011

How can I adjust the interval between tracks on replay? I do not like the "no break ' default. So is there a way of setting a break of say 3 - 4 secs.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved