2GB limit

Martin Pool mbp at canonical.com
Mon Oct 11 03:08:25 BST 2010


On 10 October 2010 01:26, Maritza Mendez <martitzam at gmail.com> wrote:
> [1] I expect to have repos which are large compared to physical RAM.  So to
> accelerate testing it turns out to be convenient to work with modest (1.5
> GB) branches on a low-memory system.  For example, back in the bzr 2.0 days,
> bzr just could not finish committing teh origional branch on the 512MB
> Ububtu box.  Now, with bzr 2.2, bzr survives an hour or more of
> disk-thrashing and gets the branch committed.  Yes, I am sometimes cruel.
> We like stress testing, because we know the future will be stressful.

On Ubuntu/Unix, you can use ulimit to restrict how much memory is
available to processes started under a particular shell.  This will
not necessarily give precisely the same behaviour as a hardware limit
(since that will also affect kernel memory usage) but it it's easy to
vary.

For example

  $ ulimit -v 512000
  $ bzr commit ...

-- 
Martin



More information about the bazaar mailing list