Hardkernel 256GB eMMC with lvm2 on PBP
#2
Second run on LVM, ext4: BUILD SUCCESSFUL in 7m 7s (427 s)
Non-LVM partition, same MMC, ext4: BUILD SUCCESSFUL in 6m 57s (417 s)
So lvm took 2.4% longer.

The old emmc might have been slower just because it was older. Flash is supposed to get slower as it wears.

The amount of writing that this build does is still concerning. I found one thread on serverfault where a comment said,
https://serverfault.com/questions/238033...nder-linux
Quote:"BEWARE: The ext4 lifetime_write_kbytes and session_write_kbytes are not representative of SSD memory cell writes. I've seen one system report 15TB for ext4 lifetime_write_kbytes, while the SSD itself reported only 1TB via SMART attribute 241. I suspect ext4 might be adding the entire size of the filesystem's free space to those statistics every time fstrim runs, even though the SSD controller obviously wouldn't repeatedly erase all those available blocks if they hadn't been touched since the last erase. tune2fs -l output appears to be similarly misleading."

And that is not my observation at all. I had 'watch -n5 iostat -h' running during the builds, and saw kB_wrtn go up by 5.8 G - 5.9 G, which is in line with the change in size of the directory. ext4's lifetime writes field is only updated on remount; since I had non-lvm on a separate partition, I could easily check it, and it showed +6 GB written, rounded to the GB.

What write amplification factor does the emmc multiply that by? There doesn't appear to be any way to know. Real SSDs support smart monitoring, which let you check NAND writes vs host writes. MMCs don't have any public interface to check that.

Short version, the PBP 2.0 should have a built-in M.2 slot so you don't have to try to cram an adapter in there, and it needs more RAM. The PineTab's SoC is supposed to support up to 32 GB RAM; with even 8 GB, you could do the build on a tmpfs and it would have enough left for the compiler to squeak through. With 16+ GB, it would be comfortable. Modern mega-projects like this show very clearly why 64 GB emmc & 4 GB RAM aren't enough if you want to do actual software development rather than just building packages occasionally for personal use. The PBP's processor is actually powerful enough to do the build in < 4 m with build caching enabled, but you shouldn't have to worry about how many build cycles you're doing per day. The .jar files are already compressed, so using zram to make a compressed tmpfs, while easy to set up, didn't help.
  Reply


Messages In This Thread
RE: Hardkernel 256GB eMMC with lvm2 on PBP - by Dendrocalamus64 - 12-20-2024, 02:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  256GB EMMC! sallyhaj 3 1,712 11-19-2024, 10:06 AM
Last Post: ameridroid
  eMMC failed Dendrocalamus64 9 9,587 11-12-2021, 11:08 AM
Last Post: Dendrocalamus64
  Upgrade eMMC card - boot problems alpopa 0 2,735 09-16-2020, 12:31 PM
Last Post: alpopa
  128GB eMMC support dgkPBP 7 10,614 09-08-2020, 07:36 AM
Last Post: KC9UDX
  Manjaro 20.06 requires multiple boots from eMMC to launch successfully on PBP Spectre 0 2,588 07-09-2020, 06:12 PM
Last Post: Spectre
  eMMC to USB adapter "very" slow at reading data talpa 3 6,204 07-08-2020, 08:55 AM
Last Post: talpa
  Internal installation of additional eMMC Besouro 7 10,433 06-06-2020, 09:33 PM
Last Post: xmixahlx
  Boot problems with new 128GB eMMC module Kareema 1 3,845 05-31-2020, 10:36 AM
Last Post: Kareema
Star Could you please add 128GB eMMC as a build option for this preorder? Dendrocalamus64 3 5,352 03-23-2020, 04:54 AM
Last Post: xmixahlx
  Emmc to MicroSD adapter won't fit in recessed slot of pbp sunjam 3 5,192 03-04-2020, 01:20 PM
Last Post: zaius

Forum Jump:


Users browsing this thread: 1 Guest(s)