Memory usage of test-all

[email protected]$G$9!#(B

$B!!(Btest-all
$B$,%a%b%j?)$$$J$N$G!“D4$Y$F$$$?$s$G$9$,!”$A$g$C$H5sF0$,$h$/$o(B
$B$+$i$J$$$N$G!“D4$Y$?7k2L$r(B dump
$B$7$F$*$-$^$9!#860x$r9M$($F$_$?$s$G$9$,!”(B
$B$h$/$o$+$j$^$;$s$G$7$?!#(B


$BJM}%a%b%j$N>CHq$N7P2a!#(B test_ $B%a%=%C%I<B9T$4$H$K7WB,!#(B

$B2#<4$,;~4V7P2a!J%F%9%H$r<B9T$7$?2s?t!K(B
$B=D<4$,(B /proc/self/statm $B$G8+$?(B resident$B!JJ*M}%a%b%jNL!&C10L(B
MB$B!K(B
http://www.atdot.net/fp_store/f.skt7bl/file.graph.png

resident (lazy)$B!!(B $B$U$D!<$K(B test-all $B$7$?$b$N(B
resident (don$B!G(Bt_lazy) lazy sweep $B$r6X;_$7$F(B test-all
$B$7$?$b$N(B
resident (memsize_of) $BKh2s!"(Bmemsize_of_all $B$r<B9T$7$?$b$N(B
resident (each_object) $BKh2s(B ObjectSpace.each_object $B$7$?$b$N(B
resident (all) GC.stat $B$H(B memsize_of_all $B$r<B9T$7$?$b$N(B
resident (clear stack) $BKh2s!"(Balloca(4KB) $B$7$F!"(B0
$B%/%j%"$7$?$b$N(B
resident (gc) $BKh2s!"(BGC $B$7$?$b$N(B

Excel [email protected]%G!<%?!’(B
http://www.atdot.net/fp_store/f.krv7bl/file.test-all-memory-usage.xlsx

VM $B>e$N(B Linux $B$G<B9T$7$F$$j!"(B775936
kB$B$NJ
M}%a%b%j$r3d$jEv$F$F$$$k!#%a(B
$B%b%jITB-$N$?$a!"ESCf$GCfCG$7$F$$$k!#(B

resident (lazy)
resident (don$B!G(Bt_lazy)
resident (clear stack)

$B!v$H$$$&$+!"$3$N!VESCf$GCfCG!W$7$A$c$&$N$G!"(Btest-all
$B$,3+H/4D6-$G(B
$B!!$^$H$b$KAv$i$J$$$G:$$C$F$$$k!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JQ$J$3$H$,5/$3$C$F$$(B
$B$k$N$+!)!!<B$O!"(BGC
$B$H$+!"$=$&$$$&9)IW$8$c$J$/$F!"%F%9%H4V$K%&%’%$%H$rCV(B
$B$1$P$$$$!"$H$+!)(B

$B!!$H$$$&$o$1$G!"$H$j$H$a$b$J$/!#6=L#$,$"$k?M$,$$$?$iD4$Y$FLc$($k$H$$$$$+(B
$B$J$!$H!#(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs