YKG / reading

0 stars 0 forks source link

Why it take almost 3s to processing initramfs? #7

Open YKG opened 2 years ago

YKG commented 2 years ago
[    0.000000][    T0] Linux version 5.19.1+ (ykg@tb) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #25 Mon Aug 15 09:33:16 CST 2022
[    0.000000][    T0] Command line: console=ttyS0 nokaslr init=/init
[    0.000000][    T0] x86/fpu: x87 FPU will use FXSAVE
[    0.000000][    T0] signal: max sigframe size: 1040
[    0.000000][    T0] BIOS-provided physical RAM map:
[    0.000000][    T0] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000][    T0] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x0000000000100000-0x000000001ffdffff] usable
[    0.000000][    T0] BIOS-e820: [mem 0x000000001ffe0000-0x000000001fffffff] reserved
[    0.000000][    T0] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000][    T0] NX (Execute Disable) protection: active
[    0.000000][    T0] tsc: Fast TSC calibration using PIT
[    0.000000][    T0] tsc: Detected 2688.021 MHz processor
[    0.004198][    T0] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.004307][    T0] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.004443][    T0] last_pfn = 0x1ffe0 max_arch_pfn = 0x400000000
[    0.004530][    T0] x86/PAT: Configuration [0-7]: WB  WT  UC- UC  WB  WT  UC- UC  
[    0.009462][    T0] found SMP MP-table at [mem 0x000f5ba0-0x000f5baf]
[    0.012006][    T0] RAMDISK: [mem 0x1c383000-0x1ffdffff]
[    0.013918][    T0] Zone ranges:
[    0.013935][    T0]   DMA32    [mem 0x0000000000001000-0x000000001ffdffff]
[    0.013988][    T0]   Normal   empty
[    0.014000][    T0] Movable zone start for each node
[    0.014023][    T0] Early memory node ranges
[    0.014040][    T0]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.014157][    T0]   node   0: [mem 0x0000000000100000-0x000000001ffdffff]
[    0.014224][    T0] Initmem setup node 0 [mem 0x0000000000001000-0x000000001ffdffff]
[    0.014677][    T0] On node 0, zone DMA32: 1 pages in unavailable ranges
[    0.016289][    T0] On node 0, zone DMA32: 97 pages in unavailable ranges
[    0.016313][    T0] On node 0, zone DMA32: 32 pages in unavailable ranges
[    0.016413][    T0] Intel MultiProcessor Specification v1.4
[    0.016470][    T0] MPTABLE: OEM ID: BOCHSCPU
[    0.016479][    T0] MPTABLE: Product ID: 0.1         
[    0.016487][    T0] MPTABLE: APIC at: 0xFEE00000
[    0.016707][    T0] Processor #0 (Bootup-CPU)
[    0.017014][    T0] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
[    0.017112][    T0] Processors: 1
[    0.017469][    T0] [mem 0x20000000-0xfffbffff] available for PCI devices
[    0.017580][    T0] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.018105][    T0] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.018155][    T0] pcpu-alloc: [0] 0 
[    0.018688][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 128992
[    0.018769][    T0] Kernel command line: console=ttyS0 nokaslr init=/init
[    0.019795][    T0] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.020100][    T0] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.020732][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.025264][    T0] Memory: 441760K/523768K available (4096K kernel code, 731K rwdata, 212K rodata, 472K init, 840K bss, 81752K reserved, 0K cma-reserved)
[    0.028264][    T0] NR_IRQS: 4352, nr_irqs: 48, preallocated irqs: 16
[    0.038508][    T0] printk: console [ttyS0] enabled
[    0.040180][    T0] APIC: Switch to symmetric I/O mode setup
[    0.042387][    T0] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.059452][    T0] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x26bf0a43398, max_idle_ns: 440795237870 ns
[    0.059829][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 5376.04 BogoMIPS (lpj=10752084)
[    0.059981][    T0] pid_max: default: 4096 minimum: 301
[    0.060459][    T0] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.060574][    T0] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.067093][    T0] process: using AMD E400 aware idle routine
[    0.067216][    T0] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127
[    0.067276][    T0] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB 0
[    0.067399][    T0] CPU: AMD QEMU Virtual CPU version 2.5+ (family: 0xf, model: 0x6b, stepping: 0x1)
[    0.067612][    T0] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.067885][    T0] Spectre V2 : Kernel not compiled with retpoline; no mitigation available!
[    0.067908][    T0] Spectre V2 : Vulnerable
[    0.068060][    T0] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.076443][    T1] Performance Events: PMU not available due to virtualization, using software events only.
[    0.295788][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.296022][    T1] clocksource: Switched to clocksource tsc-early
[    0.297602][    T1] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.301549][    T5] Unpacking initramfs...
[    0.303889][    T1] workingset: timestamp_bits=62 max_order=17 bucket_order=0
[    0.305413][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.306260][    T1] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.307847][    T1] sched_clock: Marking stable (303450859, 4129997)->(309997366, -2416510)
[    1.316623][   T13] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x26bf0a43398, max_idle_ns: 440795237870 ns
[    1.316768][   T13] clocksource: Switched to clocksource tsc
[    3.089682][    T5] Freeing initrd memory: 61812K
[    3.148357][    T1] Freeing unused kernel image (initmem) memory: 472K
[    3.148763][    T1] Write protecting the kernel read-only data: 8192k
[    3.152669][    T1] Freeing unused kernel image (text/rodata gap) memory: 2044K
[    3.155512][    T1] Freeing unused kernel image (rodata/data gap) memory: 1836K
[    3.155686][    T1] Run /init as init process
[    3.155756][    T1]   with arguments:
[    3.155816][    T1]     /init
[    3.155854][    T1]   with environment:
[    3.155885][    T1]     HOME=/
[    3.155907][    T1]     TERM=linux
mount: mounting sysfs on /sys failed: No such device
Loading, please wait...
mount: mounting udev on /dev failed: No such device
mount: mounting devpts on /dev/pts failed: No such device
Failed to create socket: Function not implemented
Failed to initialize udev control socket: Function not implemented
Failed to create manager: Function not implemented
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
chvt: can't open console
No root device specified. Boot arguments must include a root= parameter.
/scripts/panic/console_setup: line 89: can't create /dev/tty1: No such device or address
/scripts/panic/console_setup: line 125: can't open /dev/tty1: No such device or address

BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)