I'm a packager, so I often need to use cowbuilder
or pbuilder
to build packages either for my own use or when I'm sponsoring somebody elses' work.
On my laptop, my disk isn't the fastest in the world, so I'm considering using tmpfs
for the build area, /var/cache/pbuilder/build
, to speed up the build process. Files in there can get fairly large, for example right now I've 2.2GB of data in that folder. In addition, cowbuilder works by making shallow COW copies (using hardlinks I think).
Would it be feasible to mount the build directory under tmpfs
?
I'm on Ubuntu 10.04 Lucid Lynx, but will be moving shortly to the prerelease of Maverick Meerkat. My machine has 4GB of RAM.
free -m
reports 3961M total, but I assume some's just reserved for the BIOS or video)