Hi! > I have a patch for aio-stress to align buffer address correctly. Please > have a look. Thanks in advance. > > For align buffer address to the number specified by -a option in > aio-stress, it needs to add page_size_mask extra length to total_ram > before call allocation functions. Or it wouldn't be correct in this line > after the allocation: > > p = (char *)((intptr_t) (p + page_size_mask) & ~page_size_mask);
You are adding the page_size_mask to all uses of total_ram, wouldn't it be easier to add it to the total_ram at the start of the function (and remove the page_size_mask from the malloc() call that has it allready)? -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
