[Gregory Leblanc]
> Sounds good, James, but Darren said that his machine had 256MB of ram.  I
> wouldn't have mentioned it, except that it wasn't using enough, I think.

it tries to stat /proc/kcore currently.  no procfs and it'll fail to
get a good number... I've thought about other approaches, too, but since
this is just a fall-back mechanism when the person doesn't specify a size
(like they should), I don't give it much worry.  Patches always welcome,
though, of course :)

> a side note, I think that 3x would be a better number than 4, but maybe it's
> just me.  I've got multiple machines with 256MB of ram, but only 1GB or 2GB
> RAID sets.  4x ram would overflow the smaller RAID sets.

I've thought about parsing df output of the $dir and clamping on that,
but I haven't gotten around to it yet.

Keep in mind, this is still all fall-back... you should be passing the
right value in the first place :)

James

Reply via email to