[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-users] [patch #5940] Reduce geoip.dat disc access for country
From: |
pango |
Subject: |
[Mldonkey-users] [patch #5940] Reduce geoip.dat disc access for country statistics |
Date: |
Tue, 22 May 2007 06:52:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) |
Follow-up Comment #1, patch #5940 (project mldonkey):
Another approach, based on geoip.dat file mmap()ing:
ftp://ftp.berlios.de/pub/mldonkey/pango/geoip_rewrite_and_caching_v4.patch
The virtual memory size of the process will grow by geoip.dat size, but the
overall memory usage is the same (without that patch, the file is mapped in
filesystem's page cache instead). The benefit of the patch is to replace a
lots of syscalls (probably around 20 seek() and 20 read() per lookup) by few
page faults, when a required page needs to be loaded).
The two can be combined, but I don't know if it's worth it.
The patch is not minimal, the mmap() feature is just provided by the use of
Bigarray.Array1.map_file; But I also rewrote geoip.ml to give in a more
"ocaml-ish" style.
(file #12821)
_______________________________________________________
Additional Item Attachment:
File name: geoip_rewrite_and_caching_v4.patch Size:29 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5940>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access for country statistics, spiralvoice, 2007/05/18
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access for country statistics, spiralvoice, 2007/05/20
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access for country statistics,
pango <=
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access, store computed country values in client/server structures, spiralvoice, 2007/05/22
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access, store computed country values in client/server structures, spiralvoice, 2007/05/22
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access, store computed country values in client/server structures, spiralvoice, 2007/05/25
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access, store computed country values in client/server structures, spiralvoice, 2007/05/26
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access, store computed country values in client/server structures, spiralvoice, 2007/05/26
- [Mldonkey-users] [patch #5940] Reduce geoip.dat disc access, store computed country values in client/server structures, spiralvoice, 2007/05/26