[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coreutils] [PATCH] fadvise: new module providing a simpler interfac
From: |
Pádraig Brady |
Subject: |
Re: [coreutils] [PATCH] fadvise: new module providing a simpler interface to posix_fadvise |
Date: |
Tue, 20 Jul 2010 14:52:40 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
To get the same benefits noticed with `sort`
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=dae35bac
I'm applying the same hint to all appropriate utils in the attached.
$ grep -l SEQUENTIAL *.c
base64.c
cat.c
cksum.c
comm.c
cut.c
expand.c
fmt.c
fold.c
join.c
md5sum.c
nl.c
paste.c
pr.c
ptx.c
shuf.c
sort.c
sum.c
tee.c
tr.c
tsort.c
unexpand.c
uniq.c
wc.c
Linux does quite well without this hint, and is getting better:
http://article.gmane.org/gmane.linux.kernel.mm/43753
http://lkml.org/lkml/2010/2/3/27
However I saw a small benefit on my system with
fast flash devices (around 5% less run time) and perhaps
the kernel can use this info in more sophisticated ways in future.
cheers,
Pádraig.
fadvise_use.diff
Description: Text Data