Skip to contentSkip to conversation

xfsrepair memory consumption

DISCUSSION Daniele P. 2 participants 3 messages Mar 21, 2007 – Mar 23, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Daniele P.

author
#1 lore raw
Quoted 8 lines · Barry Naujok

This could be libxfs caching in action.

Another option you can try is:

-o bhash=256

Also, -M and -P options may reduce memory consumption. I recommend -M (I'm in the middle of making that default).

Hi Barry,
In the previous test I already used the -M option (no thread). Using also -P and -o bhash=256 make the memory usage of the new version of xfs_repair close to the old version with no option for phases 1-5.
This is really useful.
Phase 6 still uses little more memory (killed!).
I will add more memory and will test later.

Thanks,
Daniele P.

#2 lore raw
Quoted 2 lines · Daniele P.

Phase 6 still uses little more memory (killed!).
I will add more memory and will test later.

Stupid question (Sorry, I didn't read the thread that carefully), is there any reason you can't just add swap-space and let it thrash a little?

author
#3 lore raw
Quoted 7 lines · Chris Wedgwood
Quoted 2 lines · Daniele P.

Phase 6 still uses little more memory (killed!).
I will add more memory and will test later.

Stupid question (Sorry, I didn't read the thread that carefully), is there any reason you can't just add swap-space and let it thrash a little?

Oh, it's less expensive (less typing) to add ram because it's a virtual machine.
Finally using the 2.8.20-1 version requires 1 GB of memory vs 750 MB for 2.6.20-1.
Next time I will add more swap by default.

Regards,
Daniele P.