-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Solaris / SmartOs #10
Comments
do you have a proc filesystem in solaris? |
It seems that the solaris procfs doesn't contain the required information. Looking at NetBSD's top implementation, it seems a new kernel api ( |
Could you make a gist or comment that contains the output of |
There is no |
what do you use then? |
|
could you provide the output of |
[root@gitlab ~]# mpstat 1 1
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 1491 0 14 515 150 2308 2 56 630 0 12926 3 4 0 94
1 1420 0 8 92 39 2737 1 25 713 0 11246 3 3 0 94
2 394 0 10 91 32 1076 1 32 432 0 2848 2 2 0 96
3 469 0 6 400 143 1359 1 24 454 0 3728 2 2 0 96
4 116 0 5 73 28 613 1 22 228 0 1629 1 1 0 98
5 133 0 6 150 70 689 1 20 194 0 2298 1 1 0 98
6 83 0 5 182 58 472 1 22 127 0 1638 1 1 0 98
7 85 0 5 247 116 704 1 23 109 0 2375 1 1 0 98
8 111 0 3 70 29 408 1 18 115 0 1745 1 1 0 99
9 100 0 3 319 248 528 1 20 104 0 1984 1 1 0 98
10 92 0 4 336 238 461 1 27 111 0 1726 1 1 0 98
11 78 0 4 241 114 674 1 22 96 0 2268 1 1 0 98
12 111 0 20 191 85 413 1 20 111 0 1586 1 1 0 99
13 96 0 3 124 57 499 0 20 102 0 1897 1 1 0 99
14 94 0 4 94 39 437 1 21 111 0 1581 1 1 0 98
15 75 0 4 237 112 660 1 22 96 0 2183 1 1 0 98
16 112 0 2 58 24 419 1 19 118 0 1719 1 1 0 98
17 95 0 3 414 333 587 1 28 104 0 2035 1 1 0 98
18 83 0 2 44 17 308 1 17 101 0 1068 1 1 0 99
19 82 0 5 103 47 416 0 19 95 0 1558 1 1 0 99
20 49 0 3 76 32 345 1 19 85 0 1138 1 1 0 98
21 55 0 9 258 122 621 1 22 85 0 2040 1 1 0 98
22 87 0 2 51 21 348 1 17 99 0 1211 1 1 0 99
23 87 0 3 110 50 476 1 20 96 0 1749 1 1 0 99
24 74 0 4 83 35 403 1 19 105 0 1397 1 1 0 98
25 70 0 4 230 109 655 1 23 96 0 2128 1 1 0 98
26 102 0 2 51 21 377 1 17 111 0 1487 1 1 0 99
27 92 0 3 115 53 496 0 20 104 0 1837 1 1 0 99
28 89 0 3 170 52 432 1 21 119 0 1562 1 1 0 98
29 74 0 4 237 111 683 1 23 108 0 2207 1 1 0 98
30 113 0 2 53 21 414 1 19 128 0 1728 1 1 0 99
31 97 0 4 125 58 550 1 22 126 0 1941 1 1 0 99 [root@gitlab ~]# vmstat 1 1
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr rm s0 s1 s2 in sy cs us sy id
0 0 36 78644532 23149256 1181 6309 0 0 0 0 12 -20715 -5 148 108 5541 80462 21566 1 1 98 |
(based on shellout - but no boot time or disks)
I created a new pre release gem, https://github.com/threez/ruby-vmstat/releases/tag/v2.2.0-0 |
@threez will try it today and let You know |
Looks like it works [root@gitlab /tmp]# gem install vmstat-2.2.0.pre.0.gem
Building native extensions. This could take a while...
Successfully installed vmstat-2.2.0.pre.0
Parsing documentation for vmstat-2.2.0.pre.0
Installing ri documentation for vmstat-2.2.0.pre.0
Done installing documentation for vmstat after 0 seconds
1 gem installed |
Looks good, I enhanced the solaris metrics again and created a second pre release. Could you install that too and post the result of the ruby command below? That way I can verify if everything works as expected. If there are any errors, please post them too. If you have any privacy trouble posting the results here, make a private gist and send the link using github to me. Thx ruby -rvmstat -rpp -e "pp Vmstat.snapshot(['/'])" |
|
@threez looks like a
|
Right, wrong |
nope :( [root@gitlab ~]# ruby -rvmstat -rpp -e "pp Vmstat.snapshot(['/'])"
/opt/local/lib/ruby/gems/2.1.5/gems/vmstat-2.2.0.pre.1/lib/vmstat/snapshot.rb:26:in `block in initialize': undefined method `disk' for Vmstat:Module (NoMethodError)
from /opt/local/lib/ruby/gems/2.1.5/gems/vmstat-2.2.0.pre.1/lib/vmstat/snapshot.rb:26:in `map'
from /opt/local/lib/ruby/gems/2.1.5/gems/vmstat-2.2.0.pre.1/lib/vmstat/snapshot.rb:26:in `initialize'
from /opt/local/lib/ruby/gems/2.1.5/gems/vmstat-2.2.0.pre.1/lib/vmstat.rb:81:in `new'
from /opt/local/lib/ruby/gems/2.1.5/gems/vmstat-2.2.0.pre.1/lib/vmstat.rb:81:in `snapshot'
from -e:1:in `<main>' |
hmm, seems like there is still a problem with statvfs. |
please also try |
@threez same error
|
Yes |
okay a created another pre release, https://github.com/threez/ruby-vmstat/releases/download/v2.2.0-2/vmstat-2.2.0.pre.2.gem, please check again with ruby -rvmstat -rpp -e "pp Vmstat.snapshot(['/'])" |
same
|
|
that looks good, hope my change will detect |
|
Okay disk seems to work now. Memory still has a problem. Could you issue |
hmm ok this works on host server
but not inside a zone ( solaris vm )
|
is there another way to get the memory statistics, that you know of? |
|
or
|
Basicly |
Thx, that is very helpful, need to digest that stuff. I try to come up with something until tomorrow. |
Does |
Nope - empty result inside a zone |
Okay created yet another pre release, all queries against the system status are done using kstat, https://github.com/threez/ruby-vmstat/releases/download/v2.2.0-4/vmstat-2.2.0.pre.4.gem, please test. |
nope
|
|
Thx, I created a test for the solaris module and build a new pre release: https://github.com/threez/ruby-vmstat/releases/download/v2.2.0-5/vmstat-2.2.0.pre.5.gem |
|
Does this work? |
Yes
|
Okay, think it's fixed. https://github.com/threez/ruby-vmstat/releases/download/v2.2.0-6/vmstat-2.2.0.pre.6.gem. Debugging/testing remotely is really fun :-) |
Works
|
okay, thx for your help. I will prepare then a new release. |
Hi,
I'm having problems installing vmstat on SmartOs. This fails during gitlab upgrade.
[root@gitlab /home/git/gitlab]# uname -a SunOS gitlab 5.11 joyent_20151015T063628Z i86pc i386 i86pc Solaris
The text was updated successfully, but these errors were encountered: