[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort: memory exhausted with 50GB file
From: |
Jim Meyering |
Subject: |
Re: sort: memory exhausted with 50GB file |
Date: |
Sat, 26 Jan 2008 09:24:07 +0100 |
Paul Eggert <address@hidden> wrote:
...
> Hmm, it sounds like your input data has some very long lines, then.
> That would explain at least part of your problem, then. 'sort' needs
> to keep at least two lines in main memory to compare them: if single
> input lines are many gigabytes long, then 'sort' must consume many
> gigabytes of memory, regardless of what parameter you specify with '-S'.
You can run this to find the maximum line length:
wc --max-line-length your-data
- sort: memory exhausted with 50GB file, Leo Butler, 2008/01/25
- Re: sort: memory exhausted with 50GB file, Bob Proulx, 2008/01/25
- Re: sort: memory exhausted with 50GB file, Leo Butler, 2008/01/25
- Re: sort: memory exhausted with 50GB file, Paul Eggert, 2008/01/25
- Re: sort: memory exhausted with 50GB file,
Jim Meyering <=
- Re: sort: memory exhausted with 50GB file, Leo Butler, 2008/01/26
- Re: sort: memory exhausted with 50GB file, Jim Meyering, 2008/01/26
- Re: sort: memory exhausted with 50GB file, Jim Meyering, 2008/01/26
- Re: sort: memory exhausted with 50GB file, Leo Butler, 2008/01/26
- Re: sort: memory exhausted with 50GB file, Paul Eggert, 2008/01/27
Re: sort: memory exhausted with 50GB file, Paul Eggert, 2008/01/25