📄 readme
字号:
TOP Version 3.5 William LeFebvre and a cast of dozensIf you do not want to read this entire file, then at least readthe section at the end entitled "KNOWN PROBLEMS".If you are having any problems getting top to work, please read thefile "FAQ" *before* contacting me. Thank you."top" is a program that will give continual reports about the state ofthe system, including a list of the top cpu using processes. Version 3of "top" has three primary design goals: provide an accurate snapshot ofthe system and process state, not be one of the top processes itself, beas portable as possible.Version 3 has many bug fixes from version 2.5, and it has also beenreorganized in a major way to make it easy to port to other platforms.All system dependent code is now contained in one file.Top now includes a configuration script called "Configure". It helpsthe installer choose the correct parameters for this particularinstallation. This script MUST be run before attempting to compile top.Top requires read access to the memory files "/dev/kmem" and "/dev/mem"as well as the system image "/vmunix". Some installations have thesefiles protected from general access. These sites would have to installthis program in the same way that programs such as "ps" are installed.In addition, on those Unix variants that support the proc filesystem(such as SVR4 and Solaris 2), top requires read access to all the filesin /proc: typically dictating that top be installed setuid to root.CAVEAT: version 3 of top has internal commands that kill and reniceprocesses. Although I have taken steps to insure that top makesappropriate checks with these commands, I cannot guarantee that theseinternal commands are totally secure. IF YOU INSTALL top as a SETUIDprogram, you do so AT YOUR OWN RISK! I realize that some operatingsystems will require top to run setuid, and I will do everything I canto make sure that top is a secure setuid program.Configure will ask you to input values for certain parameters. Beforeeach parameter, Configure will display a description of what theparameter does. Read the description and choose an appropriate value.Sometimes a default will appear in brackets. Typing just return willchoose the default.System support now takes the form of "modules". Adding support fora different architecture requires only adding a module. Configureasks which module to use when it is configuring top. See the file"Porting" for a description of how to write your own module.To compile and install "top", read the file "INSTALL" and follow thedirections and advice contained therein.Once you have created a binary for one particular type of machine, youcan reconfigure for another type with "./Configure modulename" where"modulename" is replaced with the appropriate module name. All otherparameter values are kept the same. Note that in some cases this maynot be appropriate.If you make any kind of change to "top" that you feel would bebeneficial to others who use this program, or if you find and fix a bug,please send me the change.Be sure to read the FAQ enclosed with the distrubution. It containsanswers to the most commonly asked questions about the configuration,installation, and operation of top.AVAILABILITYThe latest version of "top" is now being made available via anonymousFTP from the host "ftp.groupsys.com" in the directory "/pub/top".Additional modules will be made available in the directory"/pub/top/m". The site "eecs.nwu.edu" will continue to house copiesof the distribution as well.Here are HTML links for the four best "top" archive sites:<A HREF="ftp://ftp.groupsys.com/pub/top">Top archive (groupsys.com)</A><A HREF="ftp://eecs.nwu.edu/pub/top">Top archive (eecs.nwu.edu)</A><A HREF="ftp://pharos.dgim.doc.ca/packages/top"> Top mirror (dgim.doc.ca)</A><A HREF="ftp://uiarchive.uiuc.edu/pub/packages/top/">Top mirror (uiuc.edu)</A>New releases will be posted to comp.sources.unix as they becomeavailable. Sites which arhive that newsgroup will also contain copiesof the distribution.Announcements about availability will be made to the mailing list"top-announce@groupsys.com". This is an open list maintained bymajordomo. To join the list, send a message containing the word"subscribe" to "top-announce-request@groupsys.com". Addresses ofsubscribers to this list are kept confidential and will never be usedfor any purpose other than as recipients of announements concerningthis software.KNOWN PROBLEMS:Gnu CCCompiling via Gnu CC continued to be the source of most of thequestions I receive. By far the most common mistake made by thoseattempting to compile top with Gnu CC is out of date include files.When the operating system is upgraded, the include files that are partof the gcc package MUST also be updated. Gcc maintains its owninclude files. Even a minor OS upgrade can involve changes to some ofthe kernel's internal data structures, which are defined in includefiles in "sys". Top is very sensitive to these changes. If you arecompiling with gcc and experience any sort of strange problems, pleasemake sure the include files you are using are up to date BEFOREsending me a bug report. Look in the gcc source distribution for theshell script "fixincludes".HP/UX 10.10In their infinite wisdom, the folks at HP have decided that mere mortalssuch as you and I don't need to know what the kernel's proc structure lookslike. To that end, they have removed all useful content from the includefile <sys/proc.h> in version 10.10. As a result, top will not compileunder 10.10. What HP is trying to accomplish with this move is to forceiconoclasts such as myself to use "pstat" for collecting all processinformation. I have no immediate solution for this problem, but hope toobtain a sufficiently complete definition of "struct proc" at some point inthe near future. Stay tuned.DIGITAL UNIX 4.0 (DECOSF/1 V4.0)A user has reported that idle processes are not displayed regardlessof the flags used when invoking top. We have not had time to trackthis problem down.DECOSF/1 V3.0There is a bug either in the module, in utils.c, or in DEC's optimizer thatis tickled by the decosf1 module when compiled under V3.0 (and perhapsearlier versions). Top compiled using DEC's compiler with optimizationwill consistently produce a segmentation fault (in format_next_processwhile calling sprintf). To work around this problem, either compile topwith gcc or turn off optimization (compile without -O). We think thatone of the bugs fixed in utils.c fixed this problem as well, but we arenot certain.System V R 4.2Load average and memory displays do not work. The problem has beentraced down to a potential bug in the "mem" driver. The authorof the svr42 module is working on a fix.GRATITUDEMy perpetual thanks to all the people who have helped me support topon so many platforms. Without these people, top would not be what itis. Here is a partial list of contributors and other individuals. Robert Boucher <boucher@sofkin.ca> Marc Cohen <marc@aai.com> David Cutter <dpc@grail.com> Casper Dik <Casper.Dik@Sun.COM> Charles Hedrick <hedrick@geneva.rutgers.edu> Andrew Herbert <andrew@werple.apana.org.au> Jeff Janvrin <jeff.janvrin@columbiasc.ncr.com> Torsten Kasch <torsten@techfak.uni-bielefeld.de> Petri Kutvonen <kutvonen@cs.helsinki.fi> William L. Jones <jones@chpc> Tim Pugh <tpugh@oce.orst.edu> Steve Scherf <scherf@swdc.stratus.com> Phillip Wu <pwu01@qantek.com.au>(My apologies if I missed anyone.)AUTHOR William LeFebvre Group sys Consulting wnl@groupsys.com U.S. Mail address: William LeFebvre Group sys Consulting 11585 Jones Bridge Road Suite 420-139 Alpharetta, GA 30022 (770) 813-3224
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -