Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel size change



On Thu, 13 Jul 2023, Thomas Klausner wrote:

Many changes, but this one's the one you mean, I think:
66,67c66,67
<   LOAD           0x200000 0xffffffff80200000 0x0000000000200000 0x14c04d0 0x14c04d0 R E 0x200000
<   LOAD           0x1800000 0xffffffff81800000 0x0000000001800000 0x0d31e8 0x200000 RW  0x200000
---
>   LOAD           0x200000 0xffffffff80200000 0x0000000000200000 0x16c1998 0x16c1998 R E 0x200000
>   LOAD           0x1a00000 0xffffffff81a00000 0x0000000001a00000 0x0d3228 0x200000 RW  0x200000


That's one of them. The DATA segment is now at 0x1a00000 instead of at
0x1800000 (2MB difference). The CODE segment must've increased in size for
this. Check the previous `Section Headers:' display to see see how the sizes
have changes, starting with the `.text' section.


Going by the size of the .kmod files (which are all I have to hand right
now):

```
$ find /tmp/stand/amd64/10.99.5/ \( -name compat_li*.kmod -o -name compat*oss*.kmod \) -exec ls -l {} +
-r--r--r--  1 root  wheel  247584 Jul 11 23:26 /tmp/stand/amd64/10.99.5/modules/compat_linux/compat_linux.kmod
-r--r--r--  1 root  wheel  207552 Jul 11 23:26 /tmp/stand/amd64/10.99.5/modules/compat_linux32/compat_linux32.kmod
-r--r--r--  1 root  wheel   35320 Jul 11 23:26 /tmp/stand/amd64/10.99.5/modules/compat_ossaudio/compat_ossaudio.kmod
$
```

which equals ~500 KB + ~50 KB for the custom font (- ~20 KB for the disabled
built-in ones), it's possible that the ~550 KB extra is enough to force the
addition of an extra 2MB page. But, this can only be confirmed by looking at
all 4 kernels: 10.99.4-GENERIC, "-yours, 10.99.5-GENERIC & "-yours. Feel free
to send me these if you feel like pursuing this further.

-RVP


Home | Main Index | Thread Index | Old Index