raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
10.95k stars 4.93k forks source link

Feature request: NFSv4.2 client support in kernel #3397

Open adduty opened 4 years ago

adduty commented 4 years ago

Could you please add CONFIG_NFS_V4_2=y to the kernel config?

NFSv4.2 adds sparse file support, which would help extend the life of SSD-backed NFS shares for those network booting the Raspberry Pi.

For those who are curious, see https://msystechnologies.com/blogs/what-is-new-in-nfs-v4-2/ for a more comprehensive list of features added in NFSv4.2.

pelwell commented 4 years ago

How much does the kernel footprint grow with this feature added? Boot to as close to an idle system as you can, then run free on a kernel version with and without this patch, then post the results.

adduty commented 4 years ago

I have booted to Raspbian Lite using a kernel compiled from the latest source, once without CONFIG_NFS_V4_2=y and once with it. Here are the results:

Without:

$ free
              total        used        free      shared  buff/cache   available
Mem:        1986012       63568     1848488       16816       73956     1833772
Swap:             0           0           0

With:

$ free
              total        used        free      shared  buff/cache   available
Mem:        1986012       62848     1849452       16816       73712     1834616
Swap:             0           0           0

Difference in kernel image size:

-rw-r--r--  1 root root  5737656 Jan 21 23:17 kernel7l_custom_42.img
-rw-r--r--  1 root root  5731288 Jan 21 20:11 kernel7l_custom.img
adduty commented 4 years ago

@pelwell does this look acceptable?

pelwell commented 4 years ago

That looks acceptable. See https://github.com/raspberrypi/linux/commit/3508d8f3326cca9cdffcff88190cb8ab315260bc.