1
I am tryting to cat and grep a huge 40 GB file. After some output, my process get killed.
Any idea what can be the issue? Using OSX
[1] 37392 broken pipe cat output.txt |
37393 killed grep --color=auto -C 20 201804090004054066628236
I can confirm its because of grep memory usage. Its memory usage shoots up to almost in GB's
1
grepdoesn't store very much information in memory so the OOM seems somewhat unlikely, unless-C 20collects lines which are on the order of gigabytes each. – tripleee – 2018-04-13T09:46:22.313Yeah, but I can't see another reason why
grepwould be killed by something other than the user. – l0b0 – 2018-04-13T21:09:04.040