[OSM-dev-fr] osm2psql, problème de fichier.

Vincent Pottier vpottier at gmail.com
Jeu 21 Mar 12:55:07 UTC 2013


Le 21/03/2013 11:57, Lucas Nussbaum a écrit :
> Que dit:
> strace -f /home/vincent/Documents/cartographie/sh/france.osm2sql.sh
> ?
>
> Lucas
Good guess !
Je ne comprends pas tout mais voici un extrait vers la fin :

[pid 25569] write(2, "\nReading in file: /home/vincent/"..., 58
Reading in file: /home/vincent/tmp/france-latest.osm.pbf
) = 58
[pid 25569] time(NULL)                  = 1363869357
[pid 25569] brk(0xa51e000)              = 0xa51e000
[pid 25569] mmap2(NULL, 33558528, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x643df000
[pid 25569] mmap2(NULL, 33558528, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x623de000
*[pid 25569] open("/home/vincent/tmp/france-latest.osm.pbf", O_RDONLY) = 
-1 EOVERFLOW (Value too large for defined data type)*
[pid 25569] write(2, "Unable to open /home/vincent/tmp"..., 55Unable to 
open /home/vincent/tmp/france-latest.osm.pbf
) = 55
[pid 25569] brk(0xa50e000)              = 0xa50e000
[pid 25569] munmap(0x643df000, 33558528) = 0
[pid 25569] munmap(0x623de000, 33558528) = 0
[pid 25569] write(2, "Error occurred, cleaning up\n", 28Error occurred, 
cleaning up
) = 28
[pid 25569] send(3, "X\0\0\0\4", 5, MSG_NOSIGNAL) = 5
[pid 25569] close(3)                    = 0
[pid 25569] send(4, "X\0\0\0\4", 5, MSG_NOSIGNAL) = 5
[pid 25569] close(4)                    = 0
[pid 25569] send(5, "X\0\0\0\4", 5, MSG_NOSIGNAL) = 5
[pid 25569] close(5)                    = 0
[pid 25569] send(6, "X\0\0\0\4", 5, MSG_NOSIGNAL) = 5
[pid 25569] close(6)                    = 0
[pid 25569] exit_group(1)               = ?
Process 25568 resumed
Process 25569 detached

J'ai mis en gras ce qui me semble être un indice de ce qui ne va pas.
D'après ce que je viens de voir[1] mmap2 effectue une projection en 
mémoire d'un fichier. Peut-être que ma machine manque de mémoire pour 
traiter ce fichier de 2.4 Go (3.4 Go de RAM).

[1] http://manpages.ubuntu.com/manpages/intrepid/fr/man2/mmap2.2.html
--
FrViPofm
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/dev-fr/attachments/20130321/4ad7cffb/attachment.html>


Plus d'informations sur la liste de diffusion dev-fr