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


ADVERTISEMENT

Ubuntu :: Can't Find Any Process That Consume Such Large Number Of Memory

Feb 23, 2010

I used 9.04 for months and it work fine before restarting my PC. After I restarted my PC, the memory consumption takes up to 4.2 GB after login. However, I cannot find any process that consume such large number of memory.

[code]....

View 3 Replies View Related

Programming :: Find Which Block Of Program Consume How Much Memory?

Apr 15, 2011

I am trying to run C++ program on linux.

My program consume a lot of memory so that the memory is used up fast and memory swap is very high.

I can find this by "ps" .

My program is long.

I need to find out which part of my program consume so much memory ?

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

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

General :: Using Libcurl In C Program / Consume Webservices?

Feb 9, 2011

I have need to call webservices using libcurl through C program under ubuntu environment. Ho can I do this. I am unable to call web service using curl.

View 4 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

General :: Turn Off Monitor (Energy Saving) While In Text Console Mode

Nov 3, 2010

How to configure Linux text console to automatically turn of the monitor after some time? And by "text console" I mean that thing that you get on ctrl+alt+F[1-6], which is what you get whenever X11 is not running. And, no, I'm not using any framebuffer console (it's a plain, good and old 80x25 text-mode). Many years ago, I was using Slackware Linux, and it used to boot up in text-mode. Then you would manually run startx after the login. Anyway, the main login "screen" was the plain text-mode console, and I remember that the monitor used to turn off (energy saving mode, indicated by a blinking LED) after some time. Now I'm using Gentoo, and I have a similar setup.

The machine boots up in text-mode, and only rarely I need to run startx. I say this because this is mostly my personal Linux server, and there is no need to keep X11 running all the time. (which means: I don't want to use GDM/KDM or any other graphical login screen). But now, in this Gentoo text-mode console, the screen goes black after a while, but the monitor does not enter any energy-saving mode (the LED is always lit). Yes, I've waited long enough to verify this. Thus, my question is: how can I configure my current system to behave like the old one? In other words, how to make the text console trigger energy-saving mode of the monitor?

View 1 Replies View Related

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 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

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

Ubuntu :: Granola: Claims To Be An Energy Saving Software

Nov 8, 2010

Available for Linux, too [URL] Anyone already tried it or knows anything about it?Looks promising I will report my findings

View 9 Replies View Related

Ubuntu Multimedia :: A Bug In The Display Off Mode Energy Conservation

Nov 12, 2010

After installing Ubuntu 10.10 on a laptop Acer Aspire 5942G graphics card ATI Mobility Radeon HD 5650, some time after the boot falls color monitor. Color depth is only 65000 colors or more. In all settings, all is well (and the color depth is there spelled 24bit). Color depth is reduced at some time after a reboot. After further experiments with the screensaver was set: color spoils the energy saving mode and turn off the display!After disabling the option "disable display through .." color is now always saved in the norm!

View 3 Replies View Related

Networking :: Controlling Energy Consumption Ns2?

Apr 14, 2011

After implementing a new protocol on ns2 , I need now to integrate infomation about nodes energy .So I am going to implement a new c++ code to define the model of energy consumption in every node .have you any exemples to help me getting started .

View 2 Replies View Related

Networking :: How To Trace Energy Metric In NS2

Jan 11, 2010

How to trace the energy information from the trace file. also how to change the energy drain in faster manner.

View 2 Replies View Related

OpenSUSE :: No Power/Energy Profiles In System Settings?

Aug 21, 2011

It appears my profiles are gone, and thus i have got no way in changing settings in the 'Desktop Configuration' (Systems Settings)so, when I go toapp starter --> Configure Desktop --> Power Mgmtthere are NO profiles under 'global settings' or 'power profiles'anyone has got an idea what's cooking here

View 9 Replies View Related

OpenSUSE :: Installation Of Bumblebee Energy Saving Graphics Card?

Jul 20, 2011

Do they recommend the installation of bumblebee energy saving graphics card? Also works with pc desktop or laptop only?

View 3 Replies View Related

Networking :: In Gensen Topology Generator Energy Level Settings?

Jan 20, 2010

how to vary energy levels in gensen topology generator?seed parameter means?

View 2 Replies View Related

OpenSUSE :: Powersaving Too Agressive \ Editing Energy Profile Settings Doesn't Help Either?

Aug 9, 2010

Powersaving on my desktop is way to agressive, it behaves like a notebook. The monitor switches off after just 4 minutes.Disabling PowerDevill makes no difference. Editing energy profile settings doesn't help either.Is there another way to force these settings?

View 2 Replies View Related

Fedora :: Make The Display To Turn Off When The System Enters In Save Energy Mode?

Sep 4, 2010

I installed fedora 13 in its LXDE flavor in my laptop. I noticed when it goes to save energy mode, the TFT retro-illumination is not turned off. The display just stays black with light. How to make the display to turn off when the system enters in save energy mode?

View 4 Replies View Related

General :: What Is The Maximum No Of Processes That Can Be Run

Jul 23, 2010

I want to know what is the maximum no of processes that can be run in Linux ,as it is a multitasking so what is the limit of this.

some one told me that 8192 but why this not 10000 or 500 why 8192.

View 8 Replies View Related

General :: Cannot Get Rid Of Xterm Processes

Jul 26, 2010

I had this error when installing and running a vncserver before, which I have now removed. However, the xterm's seem to remain in the system and are regenerating themselves. Should the pid IDs stay the same each time I run this?

Code:
[root nxserver]# pidof xterm
15034 15033 15032 15031 15030 15029 15028 15027 15026
[root nxserver]# pidof xterm
15044 15043 15042 15041 15040 15039 15038 15037 15036

[Code].....

View 10 Replies View Related

General :: How To Know What Processes Are Running

Jun 6, 2010

GNU/linux kernel 2.6, Slackware 12.0.Hi:How do I know what processes are running?

View 6 Replies View Related

General :: How To Monitor Some Processes

Apr 30, 2011

I need to create a small list of processes in a monitor.conf file. A shell script needs to check the status of these processes and restart if they are down. This shell script needs to be run every couple of minutes.

The output of the shell script needs to be recorded in a log file.

So far I have created a blank monitor.conf file. I have gotten the shell script to automatically updated every couple of minutes The Shell script also sends some default test information to the log file.

how I go about doing this part ? A shell script needs to check the status of these processes and restart if they are down.

I have put in the conf file the below commands but I am not sure if this is right.

ps ax | grep httpd
ps ax | grep apache

I also dont know if the shell script should read from the conf file or if the conf file should send information to the shell script file.

View 5 Replies View Related

General :: Show Only The Processes That Use More Than 10% Of The Cpu?

Apr 24, 2011

I am trying to show only the processes that use more than 10% of the cpu. I have managed to get it to show the processes in use using:

ps -eo pcpu,cpu,nice,state,cputime,args.

Then I am unsure how to sort this information so it only shows over 10%?

View 3 Replies View Related

General :: Change Priorities Of ALL Processes?

Jan 28, 2010

I know that you can modify the nice value of a particular process as follows:renice 19 -p 4567However, now I would be interested to set the renice value of ALL active processes.I am coming from the Win world so what I tried warenice 19 -p *Of course it is not working... Anyone a quick solution how to do that in Linux?

View 1 Replies View Related

General :: How To Log All Processes Launched And Arguments

Dec 16, 2010

I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?

View 3 Replies View Related

General :: Signal Communication Between The Processes?

Sep 20, 2010

I am writing a code which communicates between 2 processes created by fork() statement. Parent reads a file and write the data into a shared memory and sends a signal to the child. The child then receives a signal from the parent to start reading. After finishing the read operation the child sends a signal to the parent asking it to resume its action. Some things are going wrong in my code.

1. segmentation error in memcpy() statement.
2. terminal hangs after running the code.
3. Synchronization problem between processes..

Code: #include <stdio.h>
#include <sys/types.h>
#include <wait.h>
#include <unistd.h>

[code].....

View 4 Replies View Related







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