📄 todo
字号:
-------------------------- general ------------------------Consider using glibc obstacks for memory allocation.Implement /usr/proc/bin tools like Solaris has.The prstat command is interesting, like top in batch mode.SCO has a pstat command.Don't these really belong in the procps package? killall pstree fuser lsof who(they are maintained elsewhere, which causes version problems)OpenBSD has a pfind command.Cache results of dev_to_tty.---------------------- kernel -------------------------Add an "adopted child" flag to mark processes that are notnatural children of init. This can make --forest work better.Supply better data for top's CPU state display. Currently top hasto subtract old numbers from new numbers and divide that result bythe number of processors. The kernel won't even supply the numberof processors in a portable way.Supply data for the ADDR and JOBC fields.Support & supply data for SL and RE.Add a /proc/*/tty symlink to eliminate guessing when /proc/*/fd isnot accessable.Add /proc/*/.bindata files to avoid string parsing. It should be an arrayof 64-bit values on all machines. New entries go on the end and obsoleteones get filled in with something logical -- entries must never be deleted!Add all the stuff Solaris has. This would also replace ptrace.---------------------- w --------------------------The LOGIN@ column sometimes has a space in it. This makes correctscripting difficult.Verify that DNS control does not give a user the power to specifyarbitrary data for the FROM column. (could set root's VGA color map!)---------------------- vmstat --------------------------Extract /proc/diskstats parsing from vmstat into libproc somewhere.--------------------- libproc ----------------------Stop storing fields with duplicate info (often differentunits: kB and pages, seconds and jiffies) in the proc_t struct.---------------------- top -------------------------Share more stuff with ps.don't truncate long usernameshave a --config option---------------- ps for now, maybe move to libproc ------------------With forest output and a tty named /dev/this_is_my_tty, the positionof the command name gets messed up. (we print too many spaces) (fixed?)Fix missing stuff for these formats: FB_j FB_l FB_v HP_f HP_l HP_fl JFMT OL_m(jobc,cpu,sl,re,cpu,prmgrp,m_swap,m_share,vm_lib,m_dt)Note that "cpu" has two meanings.Add Beowulf support. This is ugly, since the current patches use adaemon to collect info and add a HOST field after the PID field.Query optimizer, put cheap/required process selection first.Avoid reading both /proc/*/status and /proc/*/stat.Support printing the client hostname (the FROM that w(1) uses) in placeof a pty.Disambiguate narrow tty info. (/dev/tty7 == /dev/pts/7 now)1------8 1--4ttyS2 S2ttyI31 I31pts/7 7 Short form could be /999.pts/9999 9999 Short form could just be trunctuated to /999.tty7 7 Short form could be vc-7.tty63 63 Short form could be vc63.Internationalization, as specified by XPG3, Volume 1, Commands and Utilities.(and suggested by Unix98) LC_TIME affects date format.----------------------- ps -----------------------Add an option to select all processes that a user can kill.(related to RUID, EUID, tty, etc. -- but maybe ignore root power)Add a nice display option for killing things.ruser,euser,ppid,pid,pmem,stime,argsFor RT stuff:pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,commFor job control:stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,commMake the column alignment algorithm support this: FOO BAR 8 44444 453 45 45 2989 63666 0 34 333(useful for the UNIX tty and time values, since the time might looklike 100-10:40:32 for old processes and the tty might have extra room)Improve long sort/format specifiers documentation and fill in the missingcode as much as the kernel can support. Make sure that memory amounts are inpages when they should be and in kB when they should be, not backwards.output encoding: UTF8 --nul --nullMake BSD formats use non-standard BSD time format, at least when itdoesn't violate the "no whitespace" rule.Better unmangling of '?' as a tty. The shell destroys '?' when thereis a filename that matches. If the argument seems like garbage,check for a file that might have screwed up the '?'.If the 'O' option is given something already implied by 'O',assume the user wanted a sorting option.Conflict:Digital THREAD is user,pcpu,pri,scnt,wchan,usertime,systimeAIX THREAD is uname,pid,ppid,tid,S,C,PRI,scount,WCHAN,F,tty,bnd,commAIX looks like this: USER PID PPID TID S C PRI SC WCHAN FLAG TTY BND CMD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -