Eugene M. Zheganin
2018-Nov-23 10:28 UTC
11-STABLE, gstat and swap: uneven mirror disk usage
Hello, Am I right concluding that there's something wrong in either how freebsd works with swap partition, or with how gstat reports its activity ? Because on the consistently woring mirror the situation when only one disk member is used and the other is not for both reads and writes just cannot happen: last pid: 24590; load averages: 6.54, 8.61, 9.86 up 16+04:11:06 15:22:24 79 processes: 1 running, 78 sleeping CPU: 0.2% user, 0.0% nice, 15.0% system, 1.8% interrupt, 83.0% idle Mem: 55M Active, 1092K Inact, 2136K Laundry, 61G Wired, 1111M Free ARC: 33G Total, 1799M MFU, 26G MRU, 3808M Anon, 408M Header, 1032M Other 26G Compressed, 31G Uncompressed, 1.18:1 Ratio Swap: 32G Total, 1665M Used, 30G Free, 5% Inuse, 5620K In, 2276K Out # gstat -do dT: 1.004s w: 1.000s L(q) ops/s r/s kBps ms/r w/s kBps ms/w d/s kBps ms/d o/s ms/o %busy Name 0 19 19 137 1.0 0 0 0.0 0 0 0.0 0 0.0 2.0| da0 16 342 342 2774 38.5 0 0 0.0 0 0 0.0 0 0.0 100.0| da1 2 5517 4192 38629 0.6 1189 25531 0.3 0 0 0.0 135 0.8 67.3| da2 2 5408 4139 39203 0.6 1134 25332 0.4 0 0 0.0 135 0.9 69.5| da3 0 5534 4193 37472 0.6 1205 25562 0.4 0 0 0.0 135 0.9 69.3| da4 1 5501 4170 37238 0.6 1196 25404 0.3 0 0 0.0 135 0.9 66.8| da5 0 5979 4485 42487 0.6 1366 28570 0.3 0 0 0.0 128 0.7 71.0| da6 0 5897 4521 41109 0.6 1247 28578 0.3 0 0 0.0 128 0.9 70.1| da7 0 5922 4491 41663 0.5 1302 28815 0.3 0 0 0.0 128 0.8 69.1| da8 0 6071 4611 40399 0.5 1332 28291 0.3 0 0 0.0 128 0.8 68.6| da9 2 5681 4267 41476 0.5 1286 24951 0.3 0 0 0.0 127 0.7 66.4| da10 2 5515 4147 40652 0.6 1241 24752 0.3 0 0 0.0 127 1.0 66.6| da11 2 5768 4284 41432 0.5 1357 24896 0.3 0 0 0.0 127 0.8 64.8| da12 0 5608 4209 39565 0.5 1271 24752 0.3 0 0 0.0 127 0.8 64.6| da13 0 5217 3747 37203 0.5 1333 25908 0.2 0 0 0.0 137 0.6 60.6| da14 0 5151 3725 38226 0.5 1288 25753 0.2 0 0 0.0 137 0.6 61.0| da15 0 5157 3722 36736 0.5 1297 25908 0.3 0 0 0.0 137 0.7 63.4| da16 0 4948 3645 36375 0.7 1165 25655 0.4 0 0 0.0 137 0.8 67.0| da17 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| da18 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| da0p1 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| da0p2 0 17 17 133 0.7 0 0 0.0 0 0 0.0 0 0.0 1.2| da0p3 0 2 2 4 4.0 0 0 0.0 0 0 0.0 0 0.0 0.8| da0p4 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| gpt/boot0 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| gptid/2cdc4b9e-c5c6-11 e5-a23b-0cc47ad2b886 0 17 17 133 0.7 0 0 0.0 0 0 0.0 0 0.0 1.2| gpt/zroot0 0 2 2 4 4.0 0 0 0.0 0 0 0.0 0 0.0 0.8| gpt/userdata0 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| da1p1 15 336 336 2263 35.5 0 0 0.0 0 0 0.0 0 0.0 100.0| da1p2 1 4 4 510 187.7 0 0 0.0 0 0 0.0 0 0.0 74.8| da1p3 0 2 2 1 243.0 0 0 0.0 0 0 0.0 0 0.0 48.4| da1p4 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| diskid/DISK-761S1047TB 4V 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| gpt/boot1 0 0 0 0 0.0 0 0 0.0 0 0 0.0 0 0.0 0.0| gptid/2ce52799-c5c6-11 e5-a23b-0cc47ad2b886 15 336 336 2263 35.5 0 0 0.0 0 0 0.0 0 0.0 100.0| mirror/swap 1 4 4 510 187.7 0 0 0.0 0 0 0.0 0 0.0 74.8| gpt/zroot1 0 2 2 1 243.0 0 0 0.0 0 0 0.0 0 0.0 48.4| gpt/userdata1 # gmirror status Name Status Components mirror/swap COMPLETE da0p2 (ACTIVE) da1p2 (ACTIVE) Thanks. Eugene.