Yeah, but there is an improvement of a greater magnitude in do_mmap_pgoff
...by about 190 ticks. There is a regression of about 60 ticks in
unmap_region (taking standard deviation into consideration). Change
in ticks for do_brk is not statistically significant.
>
> Though I'd be reluctant to assign much general significance
> to any of these numbers (suspect it might all come out quite
> differently on another machine, another config, another run).
>
I agree with this for vm_unacct_memory, since it is called from many
places. Based on the workload, nos could be different (if all the
callsites are called with comparable frequency).
However, if the workload is such that one particular caller is
stressed much more than other callers, then, maybe inlining helps
as in this case where do_mmap_pgoff is stresed more?
> But the probable best course is just to inline vm_acct_memory
> as you did, but also uninline vm_unacct_memory: placing the
> static inline vm_acct_memory and then vm_unacct_memory just
> before vm_enough_memory in mm/mmap.c.
Sounds reasonable. I'll give this a run and see how the profiles look.
Thanks,
Kiran
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/