Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

Ox820 / Kernel 4.14.x: Entropy pool filled by USB activity? Delay on boot with SATA... (4 replies)

$
0
0
Hello all,
I have switched the rootfs on my STG-212 Medion NAS with Kernel 4.14.x from USB-Stick to SATA-SSD.
Aim is to increase performance of Nextcloud as much as possible and it looks very good :-)

But after the change I immediately saw a big delay during boot caused by "random".

Please have a look on the timestamps from my boot log...

Boot from USB-Stick:
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.176-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #2 SMP PREEMPT Sun Apr 26 15:24:37 PDT 2020
...
Begin: Loading essential drivers ... done.
[    6.088284] scsi 1:0:0:0: Direct-Access     SanDisk' Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    6.101703] sd 1:0:0:0: [sdb] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    6.112340] sd 1:0:0:0: [sdb] Write Protect is off
[    6.120133] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    6.141416]  sdb: sdb1
[    6.160645] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    6.180753] random: fast init done
...
[   23.691514] random: crng init done

Boot from SATA-SSD:
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
...
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.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
[   15.990558] random: fast init done
...
[....] Starting Apache httpd web server: apache2[   30.148078] random: mktemp: uninitialized urandom read (10 bytes read)
[   30.209710] random: mktemp: uninitialized urandom read (10 bytes read)
[   30.279390] random: apache2: uninitialized urandom read (8 bytes read)
[  265.597214] random: crng init done
[  265.600616] random: 6 urandom warning(s) missed due to ratelimiting

Two times "random" is delayed massively.

I read inside several threads, that "random" (maybe) gets it input data for entropy pool by USB activity...!

Now my questions:
- Is it setup in Ox820-kernel-4.14.x as I read in the thread and missing USB-Stick slows down my boot sequence?
- Do I have a chance to choose a different data input source for "random"?
- Installation of "haveged" doesn't really seem to fix it - does anybody have a solution working on the Ox820 device?

Best regards,
Christian

Viewing all articles
Browse latest Browse all 3178

Trending Articles