处理使用top提示terminal is not big enough

简介:

 top提示terminal is not big enough

#####################################################
## 如有转载,请务必保留本文链接及版权信息
## linux/unix网站运维技术!
##QQ:335623998
##E-mail:335623998@qq.com
#####################################################
 
问题现象:
top cpu(s),键盘按1可以在cpu总的使用情况与每个CPU具体情况之间来回切换。但是当cpu个数较多时,按1提示 Sorry, terminal is not big enough ,如下:
 

 
 
  1. top - 22:11:54 up 4 days,  7:46,  7 users,  load average: 2.82, 2.95, 3.39                                                            
  2. Tasks: 446 total,   3 running, 443 sleeping,   0 stopped,   0 zombie                                                                  
  3. Cpu(s):  8.6%us,  0.6%sy,  0.0%ni, 90.1%id,  0.5%wa,  0.0%hi,  0.2%si,  0.0%st                                                        
  4. Mem:  49414312k total, 49113184k used,   301128k free,   137872k buffers                                                              
  5. Swap: 12586916k total,      308k used, 12586608k free, 48041280k cached                                                               
  6.  Sorry, terminal is not big enough                                                                                                    
  7.   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                  
  8. 11347 oracle    21   0 34.1g 858m 854m R 100.0  1.8   0:04.23 oracle                                                                  
  9. 11363 oracle    19   0 34.1g 2.1g 2.1g R 99.7  4.4   0:08.62 oracle                                                                   
  10. 11269 oracle    15   0 34.1g 3.3g 3.3g S  7.6  7.0   0:14.57 oracle                                                                   
  11. 11345 oracle    16   0 34.1g  67m  62m D  6.6  0.1   0:00.42 oracle                                                                   
  12. 11343 oracle    15   0 34.1g  94m  90m S  5.3  0.2   0:00.80 oracle                                                                   
  13. 11271 oracle    15   0 34.1g 3.3g 3.3g S  1.7  7.0   0:18.36 oracle                                                                   
  14. 11221 oracle    15   0 34.1g 3.3g 3.3g S  1.0  7.1   0:14.75 oracle                                                                   
  15.  8563 oracle    16   0 34.2g  47m  43m S  0.7  0.1   0:01.63 oracle                                                                   
  16. 11333 oracle    15   0 34.1g  37m  33m S  0.7  0.1   0:00.14 oracle                                                                   
  17.  8581 oracle    15   0 34.2g  45m  20m S  0.3  0.1   0:00.66 oracle                                                                   
  18.  8932 root      16   0 13024 1608  932 S  0.3  0.0   0:11.10 top                                                                      
  19. 10291 oracle    16   0 13024 1560  932 S  0.3  0.0   0:06.21 top                                                                      
  20. 11189 root      15   0 13024 1560  932 R  0.3  0.0   0:00.45 top                                                                      
  21.     1 root      15   0 10368  736  612 S  0.0  0.0   0:04.51 init                                                                     
  22.     2 root      RT  -5     0    0    0 S  0.0  0.0   0:46.68 migration/  
 

原因:
 SecuCRT 80列24行的,详见SecuCRT 选项→终端→仿真→大小→逻辑行 24 →逻辑列 80 ,如下图:
 

 
CPU 24个核就弹不开了,Putty没有这个限制
 
 
解决:
除了设置新的行数,还有其他方法
mpstat -P ALL:
 
CPU逻辑核数:
 
 

 
 
  1. [root@oracle-1003 ~]# grep "processor"  /proc/cpuinfo|wc -l  
  2. 24  

 

 
mpstat -P ALL查看总体及每个CPU的性能统计信息:

 
 
  1. [root@oracle-1003 ~]# mpstat -P ALL 
  2. Linux 2.6.18-308.el5 (oracle-1003)    01/12/2013  
  3.  
  4. 10:23:52 AM  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s  
  5. 10:23:52 AM  all    1.21    0.00    0.20    0.96    0.00    0.02    0.00   97.60   1358.25  
  6. 10:23:52 AM    0    5.03    0.00    1.78    4.04    0.06    0.49    0.00   88.61   1212.48  
  7. 10:23:52 AM    1    0.76    0.00    0.12    0.48    0.00    0.00    0.00   98.64      0.00  
  8. 10:23:52 AM    2    0.64    0.00    0.11    0.87    0.00    0.00    0.00   98.38      0.00  
  9. 10:23:52 AM    3    0.70    0.00    0.08    0.36    0.00    0.00    0.00   98.86      0.00  
  10. 10:23:52 AM    4    0.60    0.00    0.11    0.81    0.00    0.00    0.00   98.49      0.00  
  11. 10:23:52 AM    5    0.64    0.00    0.13    0.36    0.00    0.00    0.00   98.88      0.00  
  12. 10:23:52 AM    6    0.66    0.00    0.10    0.88    0.00    0.00    0.00   98.36      0.00  
  13. 10:23:52 AM    7    0.75    0.00    0.07    0.41    0.00    0.00    0.00   98.76      0.00  
  14. 10:23:52 AM    8    0.80    0.00    0.12    1.00    0.00    0.00    0.00   98.08      0.00  
  15. 10:23:52 AM    9    0.97    0.00    0.09    0.45    0.00    0.00    0.00   98.49      0.00  
  16. 10:23:52 AM   10    1.12    0.00    0.15    1.28    0.00    0.00    0.00   97.45      0.00  
  17. 10:23:52 AM   11    1.51    0.00    0.11    0.63    0.00    0.00    0.00   97.75      0.00  
  18. 10:23:52 AM   12    1.73    0.00    0.41    3.24    0.00    0.03    0.00   94.59      0.00  
  19. 10:23:52 AM   13    1.01    0.00    0.13    0.54    0.00    0.00    0.00   98.32      0.00  
  20. 10:23:52 AM   14    0.94    0.00    0.13    0.78    0.00    0.00    0.00   98.14      0.00  
  21. 10:23:52 AM   15    0.76    0.00    0.10    0.32    0.00    0.00    0.00   98.81      0.00  
  22. 10:23:52 AM   16    1.12    0.00    0.12    0.86    0.00    0.00    0.00   97.90      0.00  
  23. 10:23:52 AM   17    0.85    0.00    0.11    0.39    0.00    0.00    0.00   98.66      0.00  
  24. 10:23:52 AM   18    1.41    0.00    0.12    0.98    0.00    0.00    0.00   97.48      0.00  
  25. 10:23:52 AM   19    1.23    0.00    0.10    0.59    0.00    0.00    0.00   98.08      0.00  
  26. 10:23:52 AM   20    1.70    0.00    0.15    1.23    0.00    0.00    0.00   96.93      0.00  
  27. 10:23:52 AM   21    1.14    0.00    0.10    0.62    0.00    0.00    0.00   98.14      0.00  
  28. 10:23:52 AM   22    2.11    0.00    0.18    1.57    0.00    0.00    0.00   96.15      0.00  
  29. 10:23:52 AM   23    0.92    0.00    0.08    0.45    0.00    0.00    0.00   98.55      0.00  

 


本文转自pandazhai 51CTO博客,原文链接:http://blog.51cto.com/dreamway/1116448


相关文章
打印文档即提示Print driver host for 32bit applications
主机win7 32位系统,打印一切正常,共享打印机后,客户机为win7 64位系统连接该共享打印机,连接成功,驱动安装正常,x64驱动,客户机打印测试页正常,但打印文档即提示Print driver host for 32bit applications。
7544 0
打印文档即提示Print driver host for 32bit applications
[√]addr2line
[√]addr2line
145 0
|
存储 安全 虚拟化
Windows Kernel Exploitation Notes(一)——HEVD Stack Overflow
1.Download OSR Loader 3.0:[OSROnline]http://www.osronline.com/OsrDown.cfm/osrloaderv30.zip?name=osrloaderv30.zip&id=1572.Download HEVD Source Code & HEVD_3.0:[Github]https://github.com/hacksysteam/HackSysExtremeVulnerableDriver/releases/tag/v3.00
|
编解码 并行计算
wrf--运行real.exe时报错:“Could not find level above ground“ error
在修改wrf初始场资料时,如果做了带通滤波处理,会发现在运行real.exe时报错:“Could not find level above ground” error 。
wrf--运行real.exe时报错:“Could not find level above ground“ error
|
开发者
Stack Overflow 宣布 :将于 3 月 31 日中断 Jobs、Developer Story 等功能
Stack Overflow 宣布 :将于 3 月 31 日中断 Jobs、Developer Story 等功能
154 0
Stack Overflow 宣布 :将于 3 月 31 日中断 Jobs、Developer Story 等功能
|
前端开发
Notepad2替代系统自带的记事本Notepad
Notepad2替代系统自带的记事本Notepad 原博文链接:https://www.cnblogs.com/best/p/5819858.html   事情是这样的,平时我经常把一些文字复制到记事本中编辑好了再复制到目标位置,可以在系统自带的记事本中替换删除一些内容,记事本小巧,占用很少的资源,我很喜欢; 但今天复制的内容中有很多数字和一些我不想要的内容,我想到了正则,发现系统自带的记事本没有,找来一个更强的工具,Word,继续查找替换,发现word中也没有正则,估计是微软认为除了程序员会正则,一般人不会用。
1539 0