Solaris mdb magic: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „=Verschiedene kleine mdb Tricks= ==Memory usage== <code> # echo ::memstat|mdb -k Page Summary Pages MB %Tot ------------ -----…“) |
m (Text replacement - "</source" to "</syntaxhighlight") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Solaris|Modular Debugger]] | |||
=Verschiedene kleine mdb Tricks= | =Verschiedene kleine mdb Tricks= | ||
==Memory usage== | ==Memory usage== | ||
< | <pre> | ||
# echo ::memstat|mdb -k | # echo ::memstat|mdb -k | ||
Page Summary Pages MB %Tot | Page Summary Pages MB %Tot | ||
Line 15: | Line 16: | ||
Total 4167561 16279 | Total 4167561 16279 | ||
Physical 4078747 15932 | Physical 4078747 15932 | ||
</ | </pre> | ||
==Kernelparameter abfragen== | ==Kernelparameter abfragen== | ||
Syntax: echo '<Parameter>/D' | mdb -k | Syntax: echo '<Parameter>/D' | mdb -k | ||
< | <pre> | ||
# echo 'ncsize/D' | mdb -k | # echo 'ncsize/D' | mdb -k | ||
ncsize: | ncsize: | ||
ncsize: 70485 | ncsize: 70485 | ||
</ | </pre> | ||
==Kernelparameter setzen== | ==Kernelparameter setzen== | ||
Syntax: echo '<Parameter>/W<Value>' | mdb -wk | Syntax: echo '<Parameter>/W<Value>' | mdb -wk | ||
< | <pre> | ||
# echo 'do_tcp_fusion/W0' | mdb -wk | # echo 'do_tcp_fusion/W0' | mdb -wk | ||
do_tcp_fusion: 0 = 0x0 | do_tcp_fusion: 0 = 0x0 | ||
</ | </pre> | ||
[[ | ==Inquiry strings in Solaris 11== | ||
<syntaxhighlight lang=bash> | |||
# echo "::walk sd_state | ::grep '.!=0' | ::print struct sd_lun un_sd | ::print struct scsi_device sd_inq | ::print struct scsi_inquiry inq_vid inq_pid" | mdb -k | |||
inq_vid = [ "VMware " ] | |||
inq_pid = [ "Virtual disk " ] | |||
inq_vid = [ "NECVMWar" ] | |||
inq_pid = [ "VMware SATA CD00" ] | |||
inq_vid = [ "VMware " ] | |||
inq_pid = [ "Virtual disk " ] | |||
</syntaxhighlight> |
Latest revision as of 04:24, 26 November 2021
Verschiedene kleine mdb Tricks
Memory usage
# echo ::memstat|mdb -k Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 2855874 11155 69% Anon 50119 195 1% Exec and libs 4754 18 0% Page cache 22972 89 1% Free (cachelist) 11948 46 0% Free (freelist) 1221894 4773 29% Total 4167561 16279 Physical 4078747 15932
Kernelparameter abfragen
Syntax: echo '<Parameter>/D' | mdb -k
# echo 'ncsize/D' | mdb -k ncsize: ncsize: 70485
Kernelparameter setzen
Syntax: echo '<Parameter>/W<Value>' | mdb -wk
# echo 'do_tcp_fusion/W0' | mdb -wk do_tcp_fusion: 0 = 0x0
Inquiry strings in Solaris 11
# echo "::walk sd_state | ::grep '.!=0' | ::print struct sd_lun un_sd | ::print struct scsi_device sd_inq | ::print struct scsi_inquiry inq_vid inq_pid" | mdb -k
inq_vid = [ "VMware " ]
inq_pid = [ "Virtual disk " ]
inq_vid = [ "NECVMWar" ]
inq_pid = [ "VMware SATA CD00" ]
inq_vid = [ "VMware " ]
inq_pid = [ "Virtual disk " ]