[Xastir] rtree purge

William McKeehan mckeehan at mckeehan.homeip.net
Tue Mar 1 21:12:23 EST 2005


Swap appears to be my issue...that's what you get when you have a 64 MB
Machine running several things :-)

In my case, I have a total of around 25 MB total memory used by xastir - only
9 MB of that is resident.

I also re-enabled the printf statements in shp_hash.c and verified that the
search is finding the file in the hash.

Thanks for the help with debugging!

On Tue, March 1, 2005 8:42 pm, Tom Russo said:
> On Tue, Mar 01, 2005 at 06:28:26PM -0500, we recorded a bogon-computron
> collision of the <mckeehan at mckeehan.homeip.net> flavor, containing:
>> I guess it's possible that my machine is slow enough and has such a small
>> amount of RAM that the rtree stuff is getting swapped out and when I refresh
>> the map, it's not rebuilding the rtree, but swapping?
>
> I was thinking that might be a possibility, but assumed that since you
> said there was minimal memory bloat that it wouldn't have been a problem.
> It seems unlikely that swap could account for the rtree fetches "taking
> forever" as you noted.  But I guess if there's a lot of thrashing it could
> happen.  I'd consider that exactly the kind of excessive memory bloat I was
> trying to avoid by purging unused trees.  I did at one time see the rtree
> stuff bloat my xastir process to over 80M, but that doesn't happen anymore
> both because I no longer use doubles in the rtree structure (thereby halving
> the memory requirement), and do purge the unused rtrees.
>
> Is this on a linux box?  If so, perhaps you could watch "top" and see if there
> is a lot of swap activity at such times.  That'd pretty much settle the
> question.
>
> --
> Tom Russo    KM5VY     SAR502  DM64ux         http://www.swcp.com/~russo/
> Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1
>  "When life gives you lemons, find someone with a paper cut."
>
>


-- 
William McKeehan
KI4HDU
Internet: mckeehan at mckeehan.homeip.net
http://mckeehan.homeip.net



More information about the Xastir mailing list