android adb 查看系统主频,hp adb命令,查看内存,CPU主频等信息。

The adb command provides a way to gain useful information about a number of the

systems configuration areas.

To determine the physical memory (RAM) :

for HP-UX 10x

example:

echo  physmem/D | adb /stand/vmunix /dev/kmem

physmem:

physmem:  24576

for HP-UX 11.x systems running on 32 bit architecture:

example:

echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

phys_mem_pages:

phys_mem_pages: 24576

for HP-UX 11.x systems running on 64 bit architecture:

example:

echo phys_mem_pages/D | adb64  /stand/vmunix /dev/mem

phys_mem_pages:

phys_mem_pages: 262144

The results of these commands are in memory pages, multiply by 4096

to obtain the size in bytes.

To determine the amount of lockable memory:

example:

echo total_lockable_mem/D | adb  /stand/vmunix /dev/mem

total_lockable_mem:

total_lockable_mem: 185280

for  HP-UX 11.x systems running on 64 bit architecture:

echo total_lockable_mem/D |adb64  /stand/vmunix /dev/mem

To determine the number of free swap pages :

example:

echo swapspc_cnt/D | adb  /stand/vmunix /dev/kmem

swapspc_cnt:

swapspc_cnt:    216447

This will display the number of free swap pages.

Multiply the number returned by 4096 for the number of free swap bytes.

To determine the processor speed:

example:

echo itick_per_usec/D | adb  /stand/vmunix /dev/mem

itick_per_usec:

itick_per_usec: 360

To determine the number of processors in use:

example:

echo "runningprocs/D" | adb  /stand/vmunix /dev/mem

runningprocs:

runningprocs:   2

To determine the number of pages of buffer cache ( 4Kb in size)

example:

echo bufpages/D | adb  /stand/vmunix /dev/mem

bufpages:

bufpages:       18848

To display kernel parameters using adb use the parameter name :

example:

echo nproc/D | adb  /stand/vmunix /dev/mem

nproc:

nproc:          276

To determine the amount of vxfs inodes in use

example:

echo  vxfs_ninode/D | adb  /stand/vmunix  /dev/mem

vxfs_ninode:

vxfs_ninode:    64000

To determine the kernel you are booted from:

example:

10.x

echo 'boot_string/S' | adb /stand/vmunix /dev/mem

boot_string:

boot_string:    disc(52.6.0;0)/stand/vmunix

11.x

example:

echo 'boot_string/S' | adb /stand/vmunix /dev/mem

boot_string:

boot_string:    disk(0/0/2/0.6.0.0.0.0.0;0)/stand/vmunix

from:http://blog.csdn.net/qyq88888/archive/2010/09/14/5883193.aspx

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值