[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort(1) memory usage
- To: Ed Schouten <ed_(_at_)_fxq_(_dot_)_nl>
- Subject: Re: sort(1) memory usage
- From: Dag-Erling Smørgrav <des_(_at_)_des_(_dot_)_no>
- Date: Sun, 03 Feb 2008 16:23:25 +0100
- Cc: hackers_(_at_)_freebsd_(_dot_)_org
Erik Trulsson <ertr1013_(_at_)_student_(_dot_)_uu_(_dot_)_se> writes:
> Yep, it seems that GNU sort allocates a quite large buffer by default when
> the size of the input is unknown (such as when it reads input from stdin.)
> A quick check in the source code indicates that it tries to size this buffer
> according to how much memory the system has (and according to any limits set
> on how much memory the process is allowed to use.)
Uh, OK. This scaling doesn't seem to work correctly. It seems to
allocate 27 MB on 32-bit machines and 54 MB on 64-bit machines,
regardless of memory size.
DES
--
Dag-Erling Smørgrav - des_(_at_)_des_(_dot_)_no
_______________________________________________
freebsd-hackers_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org