Current-Users archive

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

Re: kernel size change



On Wed, 12 Jul 2023, Thomas Klausner wrote:

For the last years, my nearly-GENERIC[1] kernel had size around 30MB.
Yesterday's kernel is 32MB.

Any ideas what changed, or how to find out?


try this little hack:

```
#!/bin/sh

set -eu -o pipefail
test $# -eq 2 || exit 1
f1=${1##*/}.size
f2=${2##*/}.size
trap 'rm -f "$f1" "$f2"' 0 1 2 3 15
nm -Fposix -td "$1" |
    awk 'NF == 4 && $2 ~ /^[DdTt]$/ { printf "%u\t%s\n", $4, $1 }' |
    sort -k2,2 -k1,1n > "$f1"
nm -Fposix -td "$2" |
    awk 'NF == 4 && $2 ~ /^[DdTt]$/ { printf "%u\t%s\n", $4, $1 }' |
    sort -k2,2 -k1,1n > "$f2"
sdiff -sw${COLUMNS:=80} "$f1" "$f2"
```

```
$ ./ksz_cmp.sh netbsd.old netbsd.new
                                       > 436    addrulwp
1143    calcru                         | 709    calcru
669     clock_gettime1                 | 568    clock_gettime1
                                       > 62     curcpu_stable
665     db_command                     | 669    db_command
400     db_fncall                      | 399    db_fncall
                                       > 909    db_show_all_tstiles
                                       > 145    db_syncobj_owner
10      dk_done                        | 199    dk_done
284     dk_done1                       <
399     dk_start                       | 413    dk_start
545     getrusage1                     | 543    getrusage1
353     ggtt_set_pages                 | 440    ggtt_set_pages
36      i915_ggtt_enable_hw            | 37     i915_ggtt_enable_hw
2112    i915_ggtt_probe_hw             | 2114   i915_ggtt_probe_hw
1221    i915_init_ggtt                 | 1225   i915_init_ggtt
                                       > 68     memfd_close
                                       > 92     memfd_fcntl
                                       > 6      memfd_ioctl
[...]
$
```

-RVP




Home | Main Index | Thread Index | Old Index