|
From: Dejan J. <dej...@rt...> - 2012-11-06 10:43:27
|
From your previous mail: > --3518:1:main Starting the address space manager > --3518:2:aspacem sp_at_startup = 0x007fbc7630 (supplied) > --3518:2:aspacem minAddr = 0x0004000000 (computed) > --3518:2:aspacem maxAddr = 0x007fbc6fff (computed) > --3518:2:aspacem cStart = 0x0004000000 (computed) > --3518:2:aspacem vStart = 0x0041de4000 (computed) > --3518:2:aspacem suggested_clstack_top = 0x007ebc7fff (computed) > --3518:2:aspacem <<< SHOW_SEGMENTS: Initial layout (5 segments, 0 segnames) > --3518:2:aspacem 0: RSVN 0000000000-0003ffffff 64m ----- SmFixed > --3518:2:aspacem 1: 0004000000-0041de3fff 989m > --3518:2:aspacem 2: RSVN 0041de4000-0041de4fff 4096 ----- SmFixed > --3518:2:aspacem 3: 0041de5000-007fbc6fff 989m > --3518:2:aspacem 4: RSVN 007fbc7000-00ffffffff 2052m ----- SmFixed I think that your configuration is not good because: > --3518:2:aspacem 2: RSVN 0041de4000-0041de4fff 4096 ----- SmFixed 4096 is VKI_PAGE_SIZE and that is your PAGE_SIZE (see coregrind/m_aspacemgr/aspacemgr-linux.c) Can you see your config.h file and send me values for MIPS_PAGE_SHIFT and SHM_ALIGNMENT. Regards, Dejan On 11/01/2012 04:54 AM, Ilya Smelykh wrote: > Kernel configured to 16K page size, there is no getconf tool, but > getpagesize() returns 16384. > > I olso checked valgrind with strace: > old_mmap(0x41db7000, 4194304, PROT_READ|PROT_WRITE|PROT_EXEC, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = -1 EINVAL (Invalid > argument) > > Looks like address is not 16K aligned. > > Ilya. > > 2012/11/1 Philippe Waroquiers <phi...@sk...>: >> On Wed, 2012-10-31 at 11:49 -0700, John Reiser wrote: >>> The ending address 0041de4fff is not the end of a 16KiB page: >>> --3518:2:aspacem 9: RSVN 0041de4000-0041de4fff 4096 ----- SmFixed >>> --3518:2:aspacem 10: 0041de5000-007fba3fff 989m >>> Neither is the _next_ address 0041de5000 the beginning of a 16KiB page. >> Interesting observation. >> >> It looks like the /proc/self/maps is already not aligned on 16Kb >> pages. Is that normal if the kernel is configured to be 16Kb pages ? >> What does >> getconf -a | grep PAGESIZE >> give ? >> on gcc49, it gives >> PAGESIZE 16384 >> and there, the /proc/self/maps reading is properly page aligned. >> >> Maybe the kernel is not configured for 16Kb pages ? >> >> Otherwise, strace will help to see what is going on for failing >> mmaps. >> >> Philippe >> >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> _______________________________________________ >> Valgrind-developers mailing list >> Val...@li... >> https://lists.sourceforge.net/lists/listinfo/valgrind-developers > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > |