> You can't look at this to determine how big it really is.  I'm pretty sure
> Devel::Size doesn't look at the C data structure.  You should use the
> script I sent in an earlier email along with top or something like that.
> 
> You may have already fixed it ;)

eh, no. I've been looking at top with your script, and the VSIZE is consistently
bigger with the XS modules.

I see more shared memory too, though.

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
 1977 perl         0.0%  0:03.27   1    12  1177  14.6M  13.4M  21.9M  51.0M

Hmm, RSHRD = 13.7, RSIZE = 21.9, so the unique memory used by
this process is 8.2MB? Is that what I should be looking at?

Just as comparison, the pure perl version is

 1991 perl         0.0%  0:02.89   1    12    46  13.4M  1.38M  14.6M  33.3M

so RSHRD = 1.38M, RSIZE = 14.6M, and the difference = 12.22MB

Argh, I don't get it.

--d

Reply via email to