"Yakov Lerner" [off-list ref] writes:
You are right. Apply did not work when I gave it more than one
patchfile on commandline (and --index option). I fixed this by
zeroing active_nr and freeing active_cache in
unmap_cache().
I suspect that essentially means you are forcing the cache to be
read again after writing it out, in which case I think you are
better off using NO_MMAP as Alex suggests.