|
From: Ilya S. <ily...@gm...> - 2012-11-01 03:54:31
|
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 |