bug-patch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-patch] Expected memory usage for patching large files?


From: Andreas Grünbacher
Subject: Re: [bug-patch] Expected memory usage for patching large files?
Date: Mon, 9 Jun 2014 15:17:59 +0200

Justin,

2014-06-08 6:19 GMT+02:00 Justin Delegard <address@hidden>:
> When running patch on large files, I'm surprised to see that the heap usage
> of patch increases to roughly the size of the file being patched.  Is that
> expected?

yes.

> Is there any combination of options that can patch with a fixed memory usage?

Normally, patch will try to read in the entire input file. When that
fails and patch runs out of memory, "plan B" is to be very
conservative with memory. You can force patch into "plan B" with
option --debug=16 but I wouldn't recommend it; the OS's virtual memory
management will do a much better job than that.

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]