General :: How To Refresh Htop After Sorting (via Shift+m)
Jun 22, 2011
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.
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?
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.
I am trying to sort a file, so I can compare it to another file later. I am storing the file name in a variable called curMo. I then call sort $curMo and it hangs for a very long time and I have to quit the process. why this is not working or how to make it work?
Here is part of my code:
#sort this file for this Location sort -u $curMo -o $curMo.sorted
The command: Code: ls -lRt Shows a recusrive listing, and sorts by modification time. But this in in tree fashion, where it first lists the contents of the current folder sorted by time, and then the contents of each child folder sorted by time. How would one accomplish this type of sort, but with an aggregate listing - all items recursively sorted together, rather than by individual folder?
(1)There should be a command to send content to clipboard instead of 36 buffers available in vi just like ':set paste' allows pasting from clipboard inside vi using ctrl+shift+v in insert mode.(Currently I select area using mouse & right click then copy )
2)Let us say I have sentence "I am young" I want to arrange the words in this line in alphabetical order so that I get 'am I young'. First I thought replacing space by in sentence.Then !#j then type sort -n where # represents number of words.Then #J to join the filteredlines.It works but now I have file with hundreds of sentence of varying length.If I make a macro how will it know the number of words?
And I want to be able to pipe it to sort on that third column, by letter first, then number. But I keep coming getting files sorted like:
(field separations all start at same place, so columns are not jagged like above.)
I have read the sort man pages, and have tried -n for the numbers, and -k for the position to start sorting, among other things. I also tried inputting a second position to start sorting, which sort should supposedly refer to if the two entries are identical at the first place being compared, but it seems to just ignore the second one. I just can't get it to sort the numbers properly...
For now I am manually opening the file in emacs and changing them around, needless to say, very time consuming.
1. Given a string, row no. and col. no., I want to display it in the screen appropriately. how to do this? 2. How can I find the cpu processing time taken in carrying out the sorting task (any sorting program)?
I am dragging my files over to a new Fedora 12 installation and I just noticed that special characters are not taken into account when sorting files by name (I want '_js' to come before 'images').Is there a way to make the sorting process behave like Windows, where files starting with a special character are listed first?
One of the very few things I miss from Windows is that when you press LeftShift+Del the delete key acts like the backspace key, in other words you can use Del to delete forwards and LeftShift+Del to delete backwards.
I've been reading man pages such as xmodmap and used xev to get keycodes but I can't work out how to map LeftShift+Del to Backspace.
it has installed correctly and asked me to reboot my computer so i did but it automatically boots Windows7 and i dont seem to get a choice, i read up on GRUB 1.99 and it says i have to use shift or esc to run it to select Ubuntu, i did this but shift didnt work, tryed esc but i only caught a glimpse of what i think was GRUB before the computer restarted.
I want to disable the CAPS LOCK key and replace it by pressing SHIFT twice in quick successions (like you do in Android and iOS devices). Disabling the Caps Lock key is easy using xmodmap but is it possible to do what I want to do with the SHIFT key?
I want to remap the Capslock key to a Shift key. The reason being is the UK keyboard has a very large Caps Lock and a alpha size shift. I have been looking everywhere and there is a lot about turning it into a CTRL key but I don't understand. Can you give me simple instuctions I don't know what keycodes to use and what file to edit.
In order to make this conversion I have to use a text editor. This is tedious. Is there an easier way to do it, like some program I can run from the Linux or OSX terminal?
I think this might be related to the changes to using udev or DeviceKit. It started when I was running the beta versions of F12. Then it crept into Debian Sid. And my Arch Testing and Gentoo also suffer from the same.
What happens is that I'll be working along. Then when I press any key it is as if the SHIFT key is pressed. When I press CAPSLOCK, some of the keys react as they would normally. This never lasts for more than 5 minutes. And seems to happen infrequently. I say seems because there are the times I am at work and it could be that the same thing is happening only there is no one on the keyboard.
The reason I pick out udev/DeviceKit is that when it used to happen to F12 beta, the other distros had not yet made the move. So back then it was only a F12 issue. Now it is happening across the board. And only started recently.
I installed Slackware 13.37 current 32 bit (kernel 2.6.38.7-smp) last saturday and almost everything works fine. I don't understand why I cannot use Ctrl-Ins and Shift-Ins shortcuts for copy and paste in console terminal. Shortcuts works fine in X terminal (fluxbox) Konsole... but they don't in text console.
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]
First off I am dual booting Windows 7. While in Win7 I have absolutely NO monitor issues. Since installing 10.04 I get a shaky unreadable display. To remedy the situation temporarily I have adjusted the resolution to 1200/800 but this is not a fix just a band aid. I should be able to run 1920/1080. As soon as I do this I get the shaky screen. I cannot change the refresh rate from 60 mhz. Again I am apprehensive by posting this because I have been flamed in other forums simply for being a noob and not knowing what to do but I would love to tap into the resources of you more experienced members.
I have a bunch of text logfiles in the following format:
ID (17 characters) Timestamp (14 characters YYYYmmddHHMMSS e.g. "20060210100040" -> 2006/02/10 10:00:40) Random data (? characters) end of line
The files are already sorted by timestamp.I need to get 1 log file with all the logs from multiple logs files, sorted by timestamp. Note that the log files are really huge, around 3-4G each (and there are dozens of them) I tried the following command:
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%.
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.
I'm running the great game "Capitalism Plus" w wine. This is really a Win-95 game but it runs fine under Wine (a big benefit of Linux, you can run those old Windows games again, which is impossible under WinXP...)
Anyway, here's the problem: The game runs only in 640x480. My monitor is a 22" widescreen 1920x1080. When I start Capitalism, the resolution changes to 640x480 which is fine. However, the refresh rate is 75Hz, which minimizes the actual / active screen to a small window in the middle of the monitor. (Not only for the game, but for the kde desktop.) When I set refresh rate to 60Hz (using krandrtray) everything is fine.
So here's the question: Is there any way I can create a bash-script that sets the refreshrate to 60Hz?
I'm running kde3.5, Debian Lenny on a AMD64 with ATI:s fglrx.