May 11, 200818 yr Please include terminfo file d/dumb in the bzroot. I'm trying to port my top cgi and it uses the dumb terminfo entry in batch mode. root@Atlas:/usr/share/terminfo/d# top -b -n1 -i 'dumb': unknown terminal type. and when I put the dumb file in place root@Atlas:/usr/share/terminfo/d# top -b -n1 -i top - 00:00:23 up 5:32, 3 users, load average: 1.85, 1.71, 1.47 Tasks: 78 total, 3 running, 75 sleeping, 0 stopped, 0 zombie Cpu(s): 0.4%us, 2.9%sy, 0.0%ni, 78.6%id, 17.3%wa, 0.0%hi, 0.8%si, 0.0%st Mem: 8309156k total, 7913980k used, 395176k free, 86992k buffers Swap: 262136k total, 496k used, 261640k free, 7570336k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4835 root 15 -5 0 0 0 R 4.0 0.0 13:14.90 unraidd 1632 root 20 0 1684 224 152 R 0.0 0.0 1:15.71 dhcpcd 1770 root 15 -5 0 0 0 D 0.0 0.0 3:21.57 mdrecoveryd 11107 root 20 0 2308 1040 800 R 0.0 0.0 0:00.00 top I think it would be a great feature to have this information available as one of the top bar menu items. at the very lease some info from /proc/meminfo MemFree: 279356 kB Cached: 7699896 kB SwapCached: 500 kB HighFree: 13652 kB LowFree: 265704 kB SwapFree: 261636 kB Dirty: 2468 kB SwapCached: 24 kB SwapTotal: 262136 kB SwapFree: 261616 kB It's kinda cool seeing the status of how much Dirty buffers are there when you stream lots of data. while true; do egrep 'Cached|Free|Dirty' < /proc/meminfo ; echo ; sleep 1; done
Archived
This topic is now archived and is closed to further replies.