Quote
joval - 2021-01-04 2:47 AM
Quote
munchausen - 2021-01-03 5:41 AM
BTW I think mounting the rootfs on a CF as ext4 is not such a good idea, you will waste CPU cycles with journaling but a bigger problem is it isn't good for the limited write cycles on a CF card. ext2 should be OK I think, I will try it. Update: works fine, just gives a warning at boot.
I have found that CF cards are not really required...an SD card placed in a cf adapter works very well. Further partition one can be FAT 32 and at least 15 GB
(haven't tried anything larger
)...so your J720 can access a winCE hp backup file kept there to easily "dual boot" back and restore to your prior WinCE os/session. Would less journaling cycles speed up rendering any? I guess I will have to compare the two...ext4 vs ext2.
By default journaling adds information to the journal every time you access a file - even if you're just reading it and not making any changes! The effect is that the jornada CPU has to spend time doing these writes and computing what to put in the journal when it could be doing real work, the PCMCIA
(/CF
) bus has to do some extra writes which takes up time and bus bandwidth when they could be doing actually necessary disc IO, and the flash card
(compact flash, SD card, it doesn't matter
) is getting written to all the time for no real reason, which will eventually kill it. The extra writes are a significant overhead: A 2018 paper [1] says that with journaling ext4 does 2.7 times more writes than without, which will slow the system down and burn out flash faster, and this does not include time spent reading the journal or any extra processing for the CPU that is also bogging down the system. Perhaps ext4 without journaling is a better option than ext2 though.
The swappiness should also be turned right down for the same reason; using the swap file on flash will kill it in the end
(and is also slow
), so the swappiness should be set to tell the kernel to use it only as a last resort. Ideally the swap would be on another card completely, but that isn't an option if you want a network card too.
[1]
https://csyhua.github.io/csyhua/hua-tc2018-journaling.pdf