Hi Hisham, Yes that sounds like a good optimization. 8 rows is already enough, so that would be a good limit. One problem with that though is that, if your home directory is on a shared network mount, the default will only be applied the first time you run it. If you have a heterogeneous set of machines, and you happen to run htop first on a machine with low core count, running it again on the larger machine will still revert to the single-column version. One option could be to not write out the column definitions to htoprc if they are the default. Another option could be to actually not define EvenCPUs and OddCPUs, but always use AllCPUs but have it span both columns when needed.
Regards, Wim On 21 October 2011 19:25, Hisham <[email protected]> wrote: > On Fri, Oct 21, 2011 at 12:41 PM, Wim Heirman <[email protected]> wrote: >> Hi, >> >> Attached is a patch that defines two more meters, EvenCPUs and >> OddCPUs. It also defaults the view to having EvenCPUs in the left >> column and OddCPUs in the right column. This makes htop a lot more >> usable on machines with many (over say 30) cores, and avoids the >> manual assignment of individual CPU meters (which doesn't work well if >> your htoprc is on a network mount shared by many machines with >> different core counts). Feel free to apply, adapt or change at will. > > Thank you! Nice patch, I will apply it. One minor change I have in > mind is to make the defaults conditional on the number of processors. > I'm wondering what's the number of processors from which we should > switch to even/odd display by default... 8, perhaps? > > -- Hisham > http://hisham.hm/ - http://colorbleed.com.br/ > ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ htop-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/htop-general
