取消
顯示結果 
搜尋替代 
您的意思是: 

How to use dbx tool

How to use dbx tool

我在Tru64 5.1B想使用dbx tool 卻出現如下error

該如何設定呢 ,謝謝



#/usr/ucb/dbx -k /vmunix /dev/mem

dbx version 5.1

Type 'help' for help.



thread 0xfffffc007fe28a80 stopped at Source not available



warning: Files compiled -g3: parameter values probably wrong
5 回覆

How to use dbx tool

Hello:



That is warning messages not error messages,

example for your reference:

# /usr/bin/dbx -k /vmunix /dev/mem

dbx version 5.1

Type 'help' for help.



stopped at Source not available



warning: Files compiled -g3: parameter values probably wrong

(/usr/bin/dbx) p shminfo

struct {

shmmax = 536870912

shmmin = 1

shmmni = 128

shmseg = 32

}

(/usr/bin/dbx) p seminfo

struct {

semmni = 16

semmsl = 25

semopm = 10

semume = 10

semvmx = 32767

semaem = 16384

sema = 3

}



You need to refer to some C header files

to know what can be shown, such as kernel

data structure, for example:

# more /usr/include/sys/ipc.h

# more /usr/include/sys/shm.h

# more /usr/include/sys/sem.h



Be careful, if you are not familiar

with kernel handling, just show values in

it, DON'T change any value, otherwise, you

may make system panic.



Enjoy yourself with using tool to

understand some data in kernel.



Danny

How to use dbx tool

I want to show bio_stats this value,but always show the following :(why getblk_messes always equal to "0" ?)



(/usr/ucb/dbx) p bio_stats

struct {

getblk_hits = 0

getblk_misses = 0

getblk_research = 0

getblk_dupbuf = 0

getnewbuf_calls = 0

getnewbuf_buflocked = 0

vflushbuf_lockskips = 0

mntflushbuf_misses = 0

mntinvalbuf_misses = 0

vinvalbuf_misses = 0

allocbuf_buflocked = 0

ufssync_misses = 0

}

(/usr/ucb/dbx)

How to use dbx tool

I want to show bio_stats this value,but always show the following :(why getblk_messes always equal to "0" ?)



(/usr/ucb/dbx) p bio_stats

struct {

getblk_hits = 0

getblk_misses = 0

getblk_research = 0

getblk_dupbuf = 0

getnewbuf_calls = 0

getnewbuf_buflocked = 0

vflushbuf_lockskips = 0

mntflushbuf_misses = 0

mntinvalbuf_misses = 0

vinvalbuf_misses = 0

allocbuf_buflocked = 0

ufssync_misses = 0

}

(/usr/ucb/dbx)

How to use dbx tool

Hello English:



The following two examples are obtained from

two machines:



This is a more I/O activities machine:

# sudo dbx -k /vmunix /dev/mem

dbx version 5.1

Type 'help' for help.



thread 0xfffffc00ffe06a80 stopped at

Source not available



warning: Files compiled -g3: parameter values probably wrong

(dbx) p bio_stats

struct {

getblk_hits = 86413

getblk_misses = 83701

getblk_research = 0

getblk_dupbuf = 0

getnewbuf_calls = 84383

getnewbuf_buflocked = 0

vflushbuf_lockskips = 0

mntflushbuf_misses = 0

mntinvalbuf_misses = 0

vinvalbuf_misses = 0

allocbuf_buflocked = 0

ufssync_misses = 0

}

(dbx)



This is another less I/O activities machine:

(dbx) p bio_stats

struct {

getblk_hits = 510

getblk_misses = 513

getblk_research = 0

getblk_dupbuf = 0

getnewbuf_calls = 513

getnewbuf_buflocked = 0

vflushbuf_lockskips = 0

mntflushbuf_misses = 0

mntinvalbuf_misses = 0

vinvalbuf_misses = 0

allocbuf_buflocked = 0

ufssync_misses = 0

}

(dbx)



Would you please post the command output of

"vmstat -P", and what is your machione OS

version?



Danny

How to use dbx tool

Hi Danny,



Output the "vmstat -P" is the following :





root@auah42:/root

# dbx -k /vmunix /dev/mem

dbx version 5.1

Type 'help' for help.



thread 0xfffffc007fe26a80 stopped at Source not available



warning: Files compiled -g3: parameter values probably wrong

(dbx) p pio_stats



"pio_stats" is not defined or not active

(dbx) p bio_stats

struct {

getblk_hits = 0

getblk_misses = 0

getblk_research = 0

getblk_dupbuf = 0

getnewbuf_calls = 0

getnewbuf_buflocked = 0

vflushbuf_lockskips = 0

mntflushbuf_misses = 0

mntinvalbuf_misses = 0

vinvalbuf_misses = 0

allocbuf_buflocked = 0

ufssync_misses = 0

}

(dbx) quit



root@auah42:/root

#vmstat -P



Total Physical Memory = 6144.00 M

= 786432 pages



Physical Memory Clusters:



start_pfn end_pfn type size_pages / size_bytes

0 1984 pal 1984 / 15.50M

1984 262144 os 260160 / 2032.50M

2097152 2097212 pal 60 / 480.00k

2097212 2359296 os 262084 / 2047.53M

4194304 4194364 pal 60 / 480.00k

4194364 4456448 os 262084 / 2047.53M



Physical Memory Use:



start_pfn end_pfn type size_pages / size_bytes

1984 2057 scavenge 73 / 584.00k

2057 3259 text 1202 / 9.39M

3259 3584 scavenge 325 / 2.54M

3584 3851 data 267 / 2.09M

3851 4348 bss 497 / 3.88M

4348 4643 kdebug 295 / 2.30M

4643 4650 cfgmgmt 7 / 56.00k

4650 4652 locks 2 / 16.00k

4652 4670 pmap 18 / 144.00k

*

4672 6853 unixtable 2181 / 17.04M