Debian :: Htop Showing 50+ Processes Of /usr/sbin/console?
Jun 16, 2011
This might be nothing but when booting a computer directly into the console (tty), and running htop, I expect the list of running processes to be very short, but it turns out I have more than 50 instances of /usr/sbin/console-kit-daemon --no-daemon running (see screenshot below). Is this normal?
Can anyone explain to me why there are sometimes 10 or 15 processes with the same title and "stats" listed in htop? I'm guessing there are multiple threads running - but that many of them obviously couldn't be running concurrently.
Is there any sort of performance hit taken if a process uses say, 15 non-concurrent threads vs. 10 non-concurrent threads?
Why htop's bars have different colors? Still can't find an answer... And it's bars don't really correspond to the numbers. Even if CPU is loaded 60%, the bar can be loaded almost 100%.
I am using Debian Lenny as my server to host multiple databases.
Whenever, I used to add a new database, I used to add an IP address like eth0:test in the /etc/network/interfaces file.
Today when I tried to do the same, I got an error when I tried to start the interface by typing "#ifup eth0:test". I also tried to do in this way "#ifconfig eth0:test up" but both of then yielded the same error saying "/sbin/ifconfig: no such file or directory".
The path is valid and the files are also present there. There are ifup, ifdown, if and ifconfig files in the /sbin directory. I also checked the permissions which is root:root. But still I cannot find the problem.
Let's get clear with all bin and sbin folders(from filesystem hierarchy standard):
So the question is: Why there are so many directories and what are the meanings of /usr/sbin, /usr/local/sbin and /usr/local/bin?
Many programs are distributed through archives and we have to build them from source code. Usually they have makefile so it's quite easy. This process involves creating files in usr/local/lib, usr/local/bin... usr/local/whatever without creating specific folders for a given program.
I think it's not right because if we need to remove the program we have to manually delete every of its files if the program's creator didn't take care of it.
So I was looking around for something to auto log me in. I only have the basic Debian system...no X...just command line.
Anyway, I try mingetty and it looks like I've broken it. I'm using this as an NFS server to store my music which I have up and running. It seems that it works even when I'm not logged in (I didn't know that at the time). Now when I start my computer it shows INIT: cannot execute "/sbin/mingetty" and it shows that 10 times, then I get: INIT: Id "1" respawning too fast: disabled for 5 minutes
It seems that it's just going to keep doing that and wont stop
I will be switching to Debian soon and have been forming a large script with a vbox test system to automate my system configuration when I switch.
When I install lamp (Or basically it's equivalent packages) apache and mysql start up automatically.
I could just use update-rc.d to remove the autostart but whenever there's a security or feature update for the package the files get replaced.
In addition, for some reason the system thinks it's a good idea to autostart half a dozen apache2 processes at the same time, sucking up a good 150Mb ram when not doing anything. (Anyone know why?)
How would I stop my system from doing this? Could I "chmod 000" the /etc/init.d files?
This morning I ran unhide on my Squeeze x86 netbook. The brute force process detection came up with ahidden process. Repeated runs of unhide with the system in various states continued to show the process,but with a different PID each time.(Or maybe it was spawning new processes and killing itself every second or so. A newer version of unhide,which I compile from source, did describe the process as "maybe transient" or omesuch. Anyway, I've unhide on Squeeze before, and I know that detection of any hidden process is absolutely not normal.)Also, rkhunter found some hidden directories. Of particular note, I think, is /etc/.java, which contains evenmore hidden stuff. It *might* be system-wide preferences for the JVM, but somehow I doubt it.
So, I have two questions...1. Do I really have a rootkit or trojan infection? It looks like it, but I want confirmation that I'm not chasingphantoms. (Or that I am, whichever.)2. If so, how can I prevent a recurrence? FWIW I was running without iptables or any other firewall, but I madesure all my ports were closed; and I did most of my browsing through Chromium, which should have pretty
I need something to monitor and record the activity of the top 5 processes in terms of CPU usage and load average during a specific timespan. I'm having some spikes in the morning and just realized it's not always at the same time so it's hard to get up and watch the processes with top. I need something that records CPU usage and load average of the processes from 4AM to 9AM (for instance) so I can debug the process that it's consuming my CPU and spitting +80 e-mails with monit each day.
Does Debian 6 "Squeeze" automatically run boot processes in parallel if not how do I
configure it to do so. Here is the quote from my /etc/init.d/rc : # Specify method used to enable concurrent init.d scripts. # Valid options are 'none' and 'makefile'. Obsolete options
I try to open an application, and it's painfully slow, and i think "this is weird i've had it open just 10 seconds ago and it should be in the cache". the disk is constantly working, so maybe i ran out of ram and it's swapping, so i check: according to 'free -m', about 200m of 2g ram is used (without buffers/cache), but still also 200m of swap is used, although swappiness is set to 1 (low tendency to swap). so this is not normal.also, kswapd0 is eating pretty much cpu (but not 100%). switching to tty1, logging in, and starting iotop takes about a minute. according to iotop, about 8 random processes (could be a browser, could be some daemon) have 99% IO activity (i'm not sure what that means, how can 8 processes take 99% each?).after the first 3 times, i disabled swap by adding swapoff -a to rc.local, but it's still the same, and kswapd is still among the cpu-eaters.
Is it possible to have htop run automatically after I login? If it's too much to ask, it would be great if that specific htop window is locked on the upper right corner of my screen and is a bit transparent (more opacity).
I'm looking for something similar to this one: [URL]
result of a command in the terminal. Tried using command > resultfilebut this works with commands like ls which provide a result line by line. But for commands like top, htop and some other the text file adds some string of characters.Example of running htop > test.txt is shown in the attached image. Anybody know how I can remove those characters and get something useful.The problems are those strings of character liek (B and [39m and so on.Also if i open the file on cat if displays fine(well it closes as soon as it opens but i can just see its ok) but on vim and gedit i get the result shown in the image.
[rant]Ok, I've been ignoring this for a couple of months, but now it's gotten to me and I want to know what's causing it.[/rant] Here's my problem. I have scim 1.4-9 (latest) installed for Japanese input. It works fine. I have no problems with it. However, when I launch Synaptic or update manager a duplicate instance of scim starts.This is on Debian Squeeze. See below:
B scim-bridge 34.2MIB scim-bridge 34.2MIB B scim-helper-manager 32.7MIB scim-helper-manager 32.8MIB
[code].....
It's not a huge deal, because when I close said programs, the duplicate process stop. I just find it odd because these are the only two programs that seem to cause it. Oh, and I'm using Gnome, if that matters.
I love using htop, but I have noticed that whenever I sort by a parameter (for example, Shift+m for sorting by Memory usage), the htop stats stop dynamically refreshing. Is this intended? I also notice this with top as well.
Running 9.04 Xubuntu desktop as server and development environment. I turn off gdm once booted up. When sshing in for other computer I ran htop, and found the following multiple processes:
[Code]....
Is there any good reason why I have multiples of these, or conversely is there a problem by having them? Everything works OK. Apache is only serving up my web development pages which I work on now and then, so its not having to handle external traffic. The server is port forwarded on port 80 through the router.
I just built a server, which displays 8 cores in the i7 processor. However, because of the 2 threads per core, it shows up as an 8 core system. When viewing htop, it shows system loads at 0.29,0.18, and 0.13 for respective averaging times. How would I calculate actual system load for this processor? Would I divide the average by 4 or 8? Or, is there another method?
htop is my preferred system monitor, but I have a problem with it in Unity: When I open htop from the Applications lens there's no entry in the launcher added for it. This means I can't add it permanently to the launcher. It may have to do with it being a terminal based program, but I was wondering if there is a way to get it permanently added to the launcher?
Just trying to figure out some stuff with a broken process. A java app seems to sometime get stuck on a loop or something and i'm trying to find out what's causing it using just the following #sysadmin tools at my disposal.
Things like:- htop - find the PID thats causing the High CPU cycles. I'd then want to use /proc/[PID] or lsof -p [PID] or strace [PID] etc. But the PID doesn't exist in 'ps -ef' output so I think htop must be showing me kernel level thread PIDs?
Not sure about the PID's HTOP is actually giving me? I know that some of them are the real PID's that can be accessed through /proc/[pid] etc but others are not but are i assume child processes or more likely threads as child processes are normally shown in a default ps output anyway.
Is someone able to help distinguish to me about what exactly all these other PID's are that I can't manipulate or find apart from when using HTOP.
Actually I suppose to use this "htop" command to get the system utilities like current processor speed ,running programs ,memory usage(ram and swap) to my program. I planned to get it using popen(). I was success popen("top | grep Mem", "r") with top command. But are there a way to take such information using "htop". Or are there any idea of taking current CPU,MEM,Swp usage as well as Tasks and running tasks using htop or other way to C program...
As exposed in a previous thread : 11.3 64b nvidia kde4 : font color bug in konsole I have a problem in the konsole terminal . I chose the Fixed [misc] font and i want the size 3. But for some unknown reasons konsole wants to display some chracaters and some words in bold . As This font doesn't exist in size 3 in bold, it displays the bold characters in size 7, which is the smallest available bold size for this font set (Fixed [Misc]) . It makes any of these bold characters unreadable as they are too large compared to the room they have to be displayed. How can i prevent konsole , bash , htop or any program responsible for this behaviour, to display such bold character ?
I don't know if this is the right place to do this so I will try. I have noticed a lot of posts around the web with the same problems, so I guess this is something that is common, you think it would be fixed by now but anyways. Almost constantly when I try to install a new package with yum in my system it almost always gives me a dependency error, this is the latest one when I try to install HTOP:
Error: Missing Dependency: rtld(GNU_HASH) is needed by package htop Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package htop