git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git status OOM on mmap of large file
@ 2019-01-22 22:07 Joey Hess
  2019-01-24  0:39 ` brian m. carlson
  2019-01-24 12:10 ` Jeff King
  0 siblings, 2 replies; 12+ messages in thread
From: Joey Hess @ 2019-01-22 22:07 UTC (permalink / raw)
  To: git

joey@darkstar:~/tmp/t> ls -l big-file
-rw-r--r-- 1 joey joey 11811160064 Jan 22 17:48 big-file
joey@darkstar:~/tmp/t> git status
fatal: Out of memory, realloc failed

This file is checked into git, but using a smudge/clean filter, so the actual
data checked into git is a hash. I did so using git-annex v7 mode, but I
suppose git lfs would cause the same problem.

[pid  6573] mmap(NULL, 11811164160, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)

Why status needs to mmap a large file that is not modified
and that is configured to pass through smudge/clean, I don't know.
It seems like it should be possible for status work in this situation.

-- 
see shy jo

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-01-24 21:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 22:07 git status OOM on mmap of large file Joey Hess
2019-01-24  0:39 ` brian m. carlson
2019-01-24 12:14   ` Jeff King
2019-01-24 17:05     ` Joey Hess
2019-01-24 12:10 ` Jeff King
2019-01-24 12:54   ` Duy Nguyen
2019-01-24 18:38   ` Joey Hess
2019-01-24 19:18     ` Jeff King
2019-01-24 19:28       ` Jeff King
2019-01-24 20:36       ` [PATCH] avoid unncessary malloc of whole file size Joey Hess
2019-01-24 21:12         ` Junio C Hamano
2019-01-24 21:18           ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).