Why does Git.pm on cygwin complain about 'Out of memory during “large” request?

前端 未结 4 1161
野性不改
野性不改 2020-12-16 15:57

I\'m getting this error while doing a git svn rebase in cygwin

Out of memory during \"large\" request for 268439552 bytes, total sbrk() is 140652544 bytes at         


        
4条回答
  •  无人及你
    2020-12-16 16:29

    Have you tried increasing overall Cygwin's usable memory?

    That message shows Perl was already up to 130 MiB (total sbrk()) and then tried to request a further 256MiB which failed.

    From http://www.perlmonks.org/?node_id=541750

    By default no Cygwin program can allocate more than 384 MB of memory 
    (program+data). You should not need to change this default in most 
    circumstances. However, if you need to use more real or virtual 
    memory in your machine you may add an entry in the either the 
    HKEY_LOCAL_MACHINE (to change the limit for all users) or
    HKEY_CURRENT_USER (for just the current user) section of the registry.
    
    Add the DWORD value heap_chunk_in_mb and set it to the desired 
    memory limit in decimal MB. It is preferred to do this in Cygwin 
    using the regtool program included in the Cygwin package. (For 
    more information about regtool or the other Cygwin utilities, 
    see the Section called Cygwin Utilities in Chapter 3 or use 
    each the --help option of each util.) You should always be 
    careful when using regtool since damaging your system registry
    can result in an unusable system. 
    

提交回复
热议问题