minghia
Posts: 5
Joined: Fri May 18, 2018 11:31 am

Net booting RPi 3B+ constantly reading SD card

Wed Jul 04, 2018 11:49 am

I have got my 3B+ to netboot but I have a problem where the system is periodically accessing the SD card, or at least that what I think it is doing. The green ACT LED is flashing every so often like a heartbeat. This affects audio play back. Every time the led flashes the audio drops out. If I install a blank SD card, the system boots as expected and my 1 minute sine wave file plays without any problems. Is there a way to stop the system constantly checking for a non-existent SD card?

Also the timeout before the system starts accessing the network is quite awhile in comparison to when the blank card is inserted. Is there a way to shorten the timeout before checking the network to start booting?

Tony

epoch1970
Posts: 5131
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Net booting RPi 3B+ constantly reading SD card

Wed Jul 04, 2018 12:48 pm

In reverse order,
No, you can't boot faster. You can boot a bit slower if the machine doesn't recognize your USB devices (or network), but that's all.

Are you sure the system tries to access the SD?
I suggest it syncs the contents of the NFS filesystem across the network, that takes time and interrupts other tasks.
Check your mounts do not specify option "sync" (you can add option "async" to be sure, normally is it selected by default)
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

jerrm
Posts: 202
Joined: Wed May 02, 2018 7:35 pm

Re: Net booting RPi 3B+ constantly reading SD card

Wed Jul 04, 2018 4:59 pm

epoch1970 wrote:
Wed Jul 04, 2018 12:48 pm
Are you sure the system tries to access the SD?
The SD polling when no card is present is well established, but completely undocumented.

What's worse, all that polling for the missing SD card wastes 10% of your CPU. Again, the Pi folks seem to think the wasted CPU isn't worth documenting.

Luckily there is a fix in the latest Raspbian. See: viewtopic.php?f=28&t=211912

epoch1970
Posts: 5131
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Net booting RPi 3B+ constantly reading SD card

Wed Jul 04, 2018 5:07 pm

Interesting. Thanks!
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Advanced users”