Re: [PATCH v2 7/7] swap, put_swap_page: Share more between huge/normal code path

From: Dave Hansen
Date: Wed Jul 18 2018 - 11:13:39 EST


On 07/17/2018 07:56 PM, Huang, Ying wrote:
> -.orc_unwind_ip 1380 0
> -.orc_unwind 2070 0
> -Total 26810
> +.orc_unwind_ip 1480 0
> +.orc_unwind 2220 0
> +Total 27172
>
> The total difference is same: 27172 - 26810 = 362 = 24577 - 24215.
>
> The text section difference is small: 17927 - 17815 = 112. The
> additional size change comes from unwinder information: (1480 + 2220) -
> (1380 + 2070) = 250. If the frame pointer unwinder is chosen, this cost
> nothing, but if the ORC unwinder is chosen, this is the real difference.
>
> For 112 text section difference, use 'objdump -t' to get symbol size and
> compare,

Cool, thanks for doing this!

I think what you've done here is great for readability and the binary
size increase is well worth the modest size increase.