Re: pack operation is thrashing my server

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

 



Ken Pratt <ken@xxxxxxxxxxxx> wrote:
> > Looking at /proc/meminfo only works on Linux, and maybe some other
> > OSes which support a /proc like design.  But even then we don't
> > really know how much we are competing with other active processes
> > and how much memory we can use.
> 
> Could we create a git config variable to specify the maximumum amoung
> memory to mmap? Any if that variable wasn't explicitly set, it would
> fall back on looking at /proc/meminfo?

Well, core.packedGitLimit is supposed to be related to this limit
you are asking for.  But it doesn't cover all memory usage as we
malloc other things.  core.deltaBaseCacheLimit covers part of the
malloc'd area.  pack.windowLimit I think covers another part of
the malloc'd area.  Etc...

There really isn't a global "malloc/mmap at most X bytes".

-- 
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux