andya / htop-osx Goto Github PK
View Code? Open in Web Editor NEWA port of htop to OSX
Home Page: http://hexten.net/
License: GNU General Public License v2.0
A port of htop to OSX
Home Page: http://hexten.net/
License: GNU General Public License v2.0
htop by Hisham Muhammad <[email protected]> May, 2004 - June, 2009 This Mac OS X fork is outdated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ htop 1.x has been released for Linux, but this Mac fork is based on htop 0.8.x from 2009. Check the original htop webpage for Mac OS X support. http://hisham.hm/htop/ Introduction ~~~~~~~~~~~~ This is htop, an interactive process viewer. It requires ncurses. It is tested with Linux 2.6, but is also reported to work (and was originally developed) with the 2.4 series. Note that, while, htop is Linux specific -- it is based on the Linux /proc filesystem -- it is also reported to work with FreeBSD systems featuring a Linux-compatible /proc. This software has evolved considerably during the last months, and is reasonably complete, but there is still room for improvement. Read the TODO file to see what's known to be missing. Comparison between 'htop' and 'top' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * In 'htop' you can scroll the list vertically and horizontally to see all processes and full command lines. * In 'top' you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident). * 'htop' starts faster ('top' seems to collect data for a while before displaying anything). * In 'htop' you don't need to type the process number to kill a process, in 'top' you do. * In 'htop' you don't need to type the process number or the priority value to renice a process, in 'top' you do. * In 'htop' you can kill multiple processes at once. * 'top' is older, hence, more tested. Compilation instructions ~~~~~~~~~~~~~~~~~~~~~~~~ This program is distributed as a standard autotools-based package. See the INSTALL file for detailed instructions, but you are probably used to the common "configure/make/make install" routine. See the manual page (man htop) or the on-line help ('F1' or 'h' inside htop) for a list of supported key commands. if not all keys work check your curses configuration.
I'm using homebrew, so can't use macports (out of my control - sadface).
So I, checked out the repo, then:
$ git co -b osx origin/osx
$ ./autogen.sh
$ ./configure
$ DEFAULT_INCLUDES="-iquote ." make
$ ./htop
htop(33087) malloc: *** error for object 0x55012c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
When htop is running with CPU temp/fan meters added, every update sends SMC read errors to system.log:
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR F1Ac kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR F1Mx kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR F2Ac kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR F2Mx kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR F3Ac kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR F3Mx kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR TCAH kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR TCBH kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
5/8/14 4:24:40.000 PM kernel[0]: SMC::smcReadKeyAction ERROR TC0H kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8034e4d000
OS X 10.9.2
htop 0.8.2.2 installed through homebrew
11" Macbook Air (2012)
In an older version of htop and OSX, the htop output roughly paralleled that of the build-in OSX top, but now it doesn't seem to display any CPU usage on a per-process basis. Compare the screenshot of htop and top side-by-side. Both should be sorting by CPU usage, but htop doesn't show anything. Even when I search specifically for the process by process number, it's still showing zeros across the board.
I'm on OSX 10.10.3 and I built htop-osx 0.8.2.2 using homebrew. I see the same results on three different macs.
Note that it does seem to be showing the overall system load the same, it's the individual processes that seem to be uncooperative.
Although it doesn't if I split panel in two, and then run htop
. Very weird.
With the just released 2.0, mainline htop is now portable and officially supports OSX out of the box: https://fosdem.org/2016/schedule/event/htop/
configure: error: Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.
this is the same error when i run configure use htop source 0.8.3. help!
Just after pressing F6 (SortBy) command htop quits printing following to the console: "htop 0.8.2.1 aborted. Please report bug at http://htop.sf.net". This happens with self-built htop from Git source as well as with the one that comes from MacPorts.
There's a workaround, after starting htop open "Kill" menu, and then cancel. After this, sort works fine.
INSTALL says »cd to the directory containing the package's source code and type ./configure«
It gets me »sh: ./configure: No such file or directory«. There is no configure-file. Why?
Hello, after installing the port, I believe that the physical memory report may be incorrect.
For example, in top, I get: 1933M used, 6258M free
In htop: 5774 / 7936MB
Not a critical issue by any means, but I realize that it may get annoying to read after awhile. I had a similar issue with top on ubuntu, where the program was reporting this number as used memory + cached memory + buffers, while I tend to think of "free memory" as only the used part.
Hi,
Just compiled the osx branch on a 10.7.2 system and I get:
htop(28036) malloc: *** error for object 0x9201240: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
The macports version works but it seems to be just binaries and I want to hack some of the code so I can have a simple terminal readout of individual cpu core usage which will then be piped into Cacti.
Thanks,
Mark
When Multi-threading is disabled, htop stops working and crashes when you try to make a setting change. To replicate this, follow these steps:
Deleting the settings file under ~/.config/htop does not fix anything, only turning multi-threading back on corrects the issue. Here is a screenshot of the unusual behavior:
OSX Version: Mountain Lion
htop Version: 0.8.2.2
Installed by: Macports
I've got htop-osx 0.8.2.2 installed via homebrew, I've tried doing a clean and reinstall but everytime I try to start htop I get this:
The terminal gets scrambled as well, so I have to reset or close the terminal
Just once, I got a clean message: htop aborted, please report bug to...
I believe this has been happening since I upgrade to OSX 10.9.3, but can't give 100% assurance.
Build runs fine, but alas htop
does not.
htop(11589) malloc: *** error for object 0x100cf0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.