Current-Users archive

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

Re: kernel size change



On Wed, Jul 12, 2023 at 09:19:50AM -0500, Jonathan A. Kollasch wrote:
> On Wed, Jul 12, 2023 at 02:28:15PM +0200, Thomas Klausner wrote:
> > Hi!
> > 
> > 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?
> > 
> > -rwxr-xr-x  2 root  wheel   29652280 Jun 27 12:40 /netbsd.10.99.4
> > -rwxr-xr-x  2 root  wheel   31751416 Jul 11 22:57 /netbsd.10.99.5
> > 
> >  Thomas
> > 
> > 
> > [1] amd64/GENERIC plus
> > options FONT_GO_MONO12x23
> > no options FONT_BOLD16x32
> > no options FONT_BOLD8x16
> > options         COMPAT_LINUX
> > options         COMPAT_LINUX32
> 
> The amd64 maximum page size (or something like that) is 2MiB and I
> suspect a section of your kernel just crossed that boundary.  Anyway,
> check things like size(1) and nm(1) --print-size (maybe with --size-sort)
> on both kernels.

There are a lot of small changes, so I guess your page size idea is
the real change.

# size /netbsd.10.99.4
   text    data     bss     dec     hex filename
21759148         864728 1228800 23852676        16bf684 /netbsd.10.99.4
# size /netbsd.10.99.5
   text    data     bss     dec     hex filename
23861620         864792 1228800 25955212        18c0b8c /netbsd.10.99.5

diff old new (after removing address column):

355a356
> 0000000000000001 d besteffort.5
394a396
> 0000000000000001 d ready.6
3190a3193
> 0000000000000006 t memfd_ioctl
3408a3412
> 0000000000000007 r memfd_prefix
7525d7528
< 000000000000000a T dk_done
9332d9334
< 000000000000000f r __func__.2
9345a9348
> 000000000000000f r __func__.4
9822c9825
< 0000000000000010 b lasttime.6
---
> 0000000000000010 b lasttime.8
10488c10491
< 0000000000000010 r interval.5
---
> 0000000000000010 r interval.7
11515d11517
< 0000000000000012 r __func__.1
11565a11568
> 0000000000000012 r __func__.3
12316a12320
> 0000000000000014 r __func__.1
13375a13380,13381
> 0000000000000018 r CSWTCH.104
> 0000000000000018 r CSWTCH.110
13412d13417
< 0000000000000018 r CSWTCH.82
13415d13419
< 0000000000000018 r CSWTCH.88
14166a14171
> 0000000000000019 r __func__.2
14174d14178
< 0000000000000019 r __func__.3
14177a14182
> 0000000000000019 r __func__.5
16330a16336
> 0000000000000020 t crashme_kpreempt_spinout
16813d16818
< 0000000000000024 T i915_ggtt_enable_hw
17063a17069
> 0000000000000025 T i915_ggtt_enable_hw
18504c18510
< 000000000000002c r CSWTCH.62
---
> 000000000000002c r CSWTCH.64
22531a22538
> 000000000000003a t memfd_seek
22938a22946
> 000000000000003e T curcpu_stable
24149a24158
> 0000000000000044 t memfd_close
24914a24924
> 0000000000000049 t crashme_spl_spinout
26882d26891
< 0000000000000057 t entropy_softintr
28521a28531
> 000000000000005c t memfd_fcntl
29191a29202
> 0000000000000060 t entropy_softintr
29815d29825
< 0000000000000065 t entropy_pending_cpu
30843c30853
< 000000000000006d t tpm_poll
---
> 000000000000006d t tpm_poll.constprop.0
30907a30918
> 000000000000006e T sys_ftruncate
32288d32298
< 0000000000000078 R audio_fileops
32308d32317
< 0000000000000078 R drm_fileops
32345d32353
< 0000000000000078 R pad_fileops
32360d32367
< 0000000000000078 R socketops
32384d32390
< 0000000000000078 R vnops
32476d32481
< 0000000000000078 r bpf_fileops
32483,32487d32487
< 0000000000000078 r cryptofops
< 0000000000000078 r dmabuf_fileops
< 0000000000000078 r drm_syncobj_file_ops
< 0000000000000078 r drvctl_fileops
< 0000000000000078 r dtv_demux_fileops
32490d32489
< 0000000000000078 r eventfd_fileops
32493,32494d32491
< 0000000000000078 r fops
< 0000000000000078 r fops.2
32515,32516d32511
< 0000000000000078 r kqueueops
< 0000000000000078 r ksyms_fileops
32520d32514
< 0000000000000078 r mqops
32569,32571d32562
< 0000000000000078 r pipeops
< 0000000000000078 r putter_fileops
< 0000000000000078 r semops
32578,32579d32568
< 0000000000000078 r sync_file_ops
< 0000000000000078 r tap_fileops
32582d32570
< 0000000000000078 r timerfd_fileops
33346a33335
> 0000000000000080 R audio_fileops
33347a33337
> 0000000000000080 R drm_fileops
33355a33346
> 0000000000000080 R pad_fileops
33357a33349
> 0000000000000080 R socketops
33358a33351
> 0000000000000080 R vnops
33448a33442
> 0000000000000080 r bpf_fileops
33456a33451
> 0000000000000080 r cryptofops
33460a33456
> 0000000000000080 r dmabuf_fileops
33461a33458,33460
> 0000000000000080 r drm_syncobj_file_ops
> 0000000000000080 r drvctl_fileops
> 0000000000000080 r dtv_demux_fileops
33462a33462
> 0000000000000080 r eventfd_fileops
33463a33464,33465
> 0000000000000080 r fops
> 0000000000000080 r fops.2
33515a33518,33519
> 0000000000000080 r kqueueops
> 0000000000000080 r ksyms_fileops
33518a33523
> 0000000000000080 r memfd_fileops
33519a33525
> 0000000000000080 r mqops
33528a33535
> 0000000000000080 r pipeops
33532a33540
> 0000000000000080 r putter_fileops
33536a33545
> 0000000000000080 r semops
33548a33558
> 0000000000000080 r sync_file_ops
33549a33560
> 0000000000000080 r tap_fileops
33552a33564
> 0000000000000080 r timerfd_fileops
35264a35277
> 0000000000000091 T db_syncobj_owner
35851a35865
> 0000000000000097 t tpm12_request_locality.part.0
36376d36389
< 000000000000009d t entropy_reset_xc
36405a36419
> 000000000000009d t vn_truncate
36460a36475
> 000000000000009e t entropy_reset_xc
36482d36496
< 000000000000009e t tpm12_request_locality.part.0
36807a36822
> 00000000000000a1 t tpm_getburst
36883d36897
< 00000000000000a2 t tpm_getburst
37163d37176
< 00000000000000a6 t entropy_init_cpu
37184a37198
> 00000000000000a6 t tpm_tis12_start
37251a37266
> 00000000000000a7 t entropy_init_cpu
38751d38765
< 00000000000000b7 t tpm_tis12_start
39196a39211
> 00000000000000be t entropy_pending_cpu
39737a39753
> 00000000000000c7 T dk_done
39812d39827
< 00000000000000c8 d nodes
40025a40041
> 00000000000000cb t tpm_waitfor.constprop.0.isra.0
40413d40428
< 00000000000000d2 T entropy_poll
40807d40821
< 00000000000000d8 t tpm_waitfor.constprop.0
40844d40857
< 00000000000000d9 T sys_ftruncate
41379a41393
> 00000000000000e3 T linux_sys_memfd_create
41510a41525
> 00000000000000e5 t tpm_tis12_end
41907d41921
< 00000000000000ed t tpm_tis12_end
42043a42058
> 00000000000000f0 T entropy_poll
42482a42498
> 00000000000000f8 t memfd_read
42583a42600
> 00000000000000fa t rnd_lock_sources
42979d42995
< 0000000000000100 t rnd_lock_sources
43277a43294
> 0000000000000107 t tpm_tis12_read
43468d43484
< 000000000000010b t tpm_tis12_read
44039a44056
> 0000000000000118 d nodes
44207d44223
< 000000000000011c t dk_done1
44246a44263
> 000000000000011d t memfd_write
44795a44813
> 000000000000012b t memfd_stat
44895a44914
> 000000000000012e t memfd_truncate
46002a46022
> 000000000000014f t tpm_tis12_write
46070a46091
> 0000000000000151 t filt_entropy_read_event
46186d46206
< 0000000000000155 t tpm_tis12_write
46492d46511
< 0000000000000160 D entropy_global
46557d46575
< 0000000000000161 T ggtt_set_pages
46732a46751
> 0000000000000168 D entropy_global
46764d46782
< 0000000000000168 t entropy_notify
47657a47676
> 0000000000000186 T sys_memfd_create
47783d47801
< 000000000000018b t filt_entropy_read_event
47878d47895
< 000000000000018f T dk_start
47890a47908
> 000000000000018f t db_fncall
47913d47930
< 0000000000000190 t db_fncall
48207a48225
> 000000000000019d T dk_start
48377a48396
> 00000000000001a4 t entropy_notify
48421a48441
> 00000000000001a6 t memfd_mmap
48688a48709
> 00000000000001b4 T addrulwp
48779a48801
> 00000000000001b8 T ggtt_set_pages
48831d48852
< 00000000000001ba t selfdebug_crashme
49073a49095
> 00000000000001c7 t selfdebug_crashme
49547d49568
< 00000000000001df t entropy_thread
49841d49861
< 00000000000001ea t entropy_enter
50591a50612
> 0000000000000214 t entropy_thread
50750a50772
> 000000000000021f T getrusage1
50783d50804
< 0000000000000221 T getrusage1
51108a51130
> 0000000000000238 T clock_gettime1
51266d51287
< 0000000000000243 t vn_ioctl
51333a51355
> 0000000000000248 t vn_ioctl
51411d51432
< 000000000000024e T rnd_add_data
51466a51488
> 0000000000000252 t entropy_enter
52092d52113
< 0000000000000284 T xen_resumeclocks
52266a52288
> 000000000000028f T xen_resumeclocks
52307d52328
< 0000000000000293 T entropy_extract
52395d52415
< 0000000000000299 t db_command
52418d52437
< 000000000000029d T clock_gettime1
52424a52444
> 000000000000029d t db_command
52548d52567
< 00000000000002aa T xc_broadcast
52770a52790
> 00000000000002c5 T calcru
53472a53493
> 0000000000000313 T rnd_add_data
53650d53670
< 0000000000000332 t entropy_consolidate_xc
53913a53934
> 000000000000035a T xc_broadcast
54167a54189
> 0000000000000385 t entropy_consolidate_xc
54203a54226
> 000000000000038d t db_show_all_tstiles
54336d54358
< 00000000000003a8 r db_show_cmds
54442d54463
< 00000000000003be T rnd_attach_source
54451a54473
> 00000000000003c0 r db_show_cmds
54483d54504
< 00000000000003c5 T xc_unicast
54508a54530
> 00000000000003cc T entropy_extract
54529a54552
> 00000000000003d0 T rnd_attach_source
54563d54585
< 00000000000003d6 t entropy_account_cpu
54721d54742
< 00000000000003fa t rnd_add_data_1
55210a55232
> 000000000000046c t rnd_add_data_1
55229a55252
> 0000000000000471 t vn_mmap
55237d55259
< 0000000000000473 t vn_mmap
55250d55271
< 0000000000000477 T calcru
55253a55275
> 0000000000000477 T xc_unicast
55499d55520
< 00000000000004c5 T i915_init_ggtt
55512a55534
> 00000000000004c9 T i915_init_ggtt
55731d55752
< 0000000000000518 r hdaudio_words
55752a55774
> 000000000000051f r hdaudio_words
55932a55955
> 0000000000000564 t entropy_account_cpu
55990d56012
< 000000000000057e T rnd_init
56373a56396
> 0000000000000654 T rnd_init
56527d56549
< 00000000000006b5 T linux_sys_fcntl
56682a56705
> 0000000000000729 T linux_sys_fcntl
56974d56996
< 0000000000000840 T i915_ggtt_probe_hw
56976a56999
> 0000000000000842 T i915_ggtt_probe_hw
57035d57057
< 0000000000000885 T entropy_ioctl
57066a57089
> 00000000000008a9 T entropy_ioctl
57092d57114
< 00000000000008c8 T sys_fcntl
57182a57205
> 0000000000000940 T sys_fcntl
57561d57583
< 0000000000000cc0 r hdaudio_products
57564a57587
> 0000000000000cd0 r hdaudio_products


Thank you!
 Thomas


Home | Main Index | Thread Index | Old Index