tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tsp-devel] Increasing memory while sampling


From: Frederik Deweerdt
Subject: Re: [Tsp-devel] Increasing memory while sampling
Date: Mon, 30 Jul 2007 11:59:11 +0200
User-agent: mutt-ng/devel-r804 (Linux)

On Mon, Jul 30, 2007 at 11:04:25AM +0200, Eric Noulard wrote:
> Le 26/07/07, Frederik Deweerdt<address@hidden> a écrit :
> > Il y a massif qui est un outil de valgrind qui permet de tracer assez
> > finement l'utilisation mémoire d'un programme donné, est-ce que tu peux
> > envoyer le .ps généré avec valgrind --tool=massif ?
> 
> A titre indicatif voici un profiling massif avec les commandes suivantes:
> 
> 1) lancement stub server
>      tsp_stub_server -f 1000
> 
> 2) profiling ascii_writer
> valgrind --tool=massif --depth=5 tsp_ascii_writer -x
> stub_ascii_writer_config.dat -o tt2.res -l 20
> 
> J'ai un peu de mal avec l'interprétation du graphique... ))
> D'après ce que je comprends la conso mémoire l'ascii_writer
> ne souffre pas d'inflation mais est maximum peu après request_sample_init
> puis tombe à 0 en fin d'exécution.
> 
> Fred, peux-tu confirmer/corriger mon analyse?
Hmm, c'est bien ce que donne massif: il y a enormement d'allocs qui se
passent au début du programme, puis celle-ci cessent parla suite.
Est-ce qu'on pourrait avoir le problème suivant:
1) RINGBUF_PTR_INIT alloue beaucoup de mÃmoire en début de programme:
cf: http://www.mail-archive.com/address@hidden/msg00480.html 
- massif rapporte une alloc de 1Go!
2) L'allocation marche, mais les pages ne sont utilisées effectivement
qu'au fur et a mesure, du coup on a l'impression que les allocations se
font de manière continue et a un rythme elevé.
3) On n'aurait pas de problème de fuite mémoire mais juste un ring
buffer trop gros en comparaison avec ce dont on a réellement besoin?

A+
Fred
> 
> -- 
> Erk

> Command: tsp_ascii_writer -x stub_ascii_writer_config.dat -o tt2.res -l 20
> 
> == 0 ===========================
> Heap allocation functions accounted for 70.4% of measured spacetime
> 
> Called from:
>   53.8% : 0x4E1FAF2: TSP_consumer_request_sample_init (tsp_consumer.c:1146)
> 
>   15.3% : 0x4E19CA5: TSP_data_receiver_create (tsp_data_receiver.c:131)
> 
>   and 45 other insignificant places
> 
> == 1 ===========================
> Context accounted for 53.8% of measured spacetime
>   0x4E1FAF2: TSP_consumer_request_sample_init (tsp_consumer.c:1146)
> 
> Called from:
>   53.8% : 0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
> 
> ---------------------------------
> Context accounted for 15.3% of measured spacetime
>   0x4E19CA5: TSP_data_receiver_create (tsp_data_receiver.c:131)
> 
> Called from:
>   15.3% : 0x4E1FAB4: TSP_consumer_request_sample_init (tsp_consumer.c:1139)
> 
> == 2 ===========================
> Context accounted for 53.8% of measured spacetime
>   0x4E1FAF2: TSP_consumer_request_sample_init (tsp_consumer.c:1146)
>   0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
> 
> Called from:
>   53.8% : 0x401C46: main (tsp_ascii_writer_main.c:373)
> 
> ---------------------------------
> Context accounted for 15.3% of measured spacetime
>   0x4E19CA5: TSP_data_receiver_create (tsp_data_receiver.c:131)
>   0x4E1FAB4: TSP_consumer_request_sample_init (tsp_consumer.c:1139)
> 
> Called from:
>   15.3% : 0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
> 
> == 3 ===========================
> Context accounted for 53.8% of measured spacetime
>   0x4E1FAF2: TSP_consumer_request_sample_init (tsp_consumer.c:1146)
>   0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
>   0x401C46: main (tsp_ascii_writer_main.c:373)
> 
> Called from:
>   53.8% : 0x3CDBC1DA43: (below main) (in /lib64/libc-2.5.so)
> 
> ---------------------------------
> Context accounted for 15.3% of measured spacetime
>   0x4E19CA5: TSP_data_receiver_create (tsp_data_receiver.c:131)
>   0x4E1FAB4: TSP_consumer_request_sample_init (tsp_consumer.c:1139)
>   0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
> 
> Called from:
>   15.3% : 0x401C46: main (tsp_ascii_writer_main.c:373)
> 
> == 4 ===========================
> Context accounted for 53.8% of measured spacetime
>   0x4E1FAF2: TSP_consumer_request_sample_init (tsp_consumer.c:1146)
>   0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
>   0x401C46: main (tsp_ascii_writer_main.c:373)
>   0x3CDBC1DA43: (below main) (in /lib64/libc-2.5.so)
> 
> Called from:
>   53.8% : 0x4011A8: (within 
> /udd/deri/enoulard/TSP/build_x86_64/Linux/Debug/bin/tsp_ascii_writer)
> 
> ---------------------------------
> Context accounted for 15.3% of measured spacetime
>   0x4E19CA5: TSP_data_receiver_create (tsp_data_receiver.c:131)
>   0x4E1FAB4: TSP_consumer_request_sample_init (tsp_consumer.c:1139)
>   0x4C0BD51: tsp_ascii_writer_start (tsp_ascii_writer.c:722)
>   0x401C46: main (tsp_ascii_writer_main.c:373)
> 
> Called from:
>   15.3% : 0x3CDBC1DA43: (below main) (in /lib64/libc-2.5.so)
> 
> =================================
> 
> End of information.  Rerun with a bigger --depth value for more.


> _______________________________________________
> Tsp-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tsp-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]