As I was slightly re-partitioning my external AMTM drive (a very low end dram-less 240GB SSD hanging on a USB2/SATA ~10 inch adapter cable), I noticed something really interesting. In 20 months this partition with Entware and a 2 GB swap file had 1152 GB of disk writes. So this is about 2GB of writes per 24 hours on average. With respect to 240GB SSD size, this is ~5x write cycles, which is very trivial given than an SSD should survive multiple hundreds depending on the flash type (TLC, QLC, etc). But, had this been a ~32GB flash cheapo flash drive, directly attached to the router thus getting all the nice heat transfer from the motherboard, it'd probably be really dead by now (1152/32=36 write cycles with possibly poor write balancing due to very basic flash drive controller, and heat, heat, and more heat).
I am thinking that perhaps a separate low overhead partition without journaling on the same SSD could be created just to hold the swap file (ext2???). I am not seeing how journaling the swap disk helps anything. A dedicated swap partition is poorly supported by AMTM, so that's not a solution either.
Anyway, if anybody wants to share their partition statistics, it could become a nice fact based conversation.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 15282156 4305852 10178360 30% /tmp/mnt/ac86u
I am thinking that perhaps a separate low overhead partition without journaling on the same SSD could be created just to hold the swap file (ext2???). I am not seeing how journaling the swap disk helps anything. A dedicated swap partition is poorly supported by AMTM, so that's not a solution either.
Anyway, if anybody wants to share their partition statistics, it could become a nice fact based conversation.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 15282156 4305852 10178360 30% /tmp/mnt/ac86u
Code:
admin@RT-AC86U-9988:/# tune2fs -l /dev/sda1
tune2fs 1.45.6 (20-Mar-2020)
Filesystem volume name: ac86u
Last mounted on: /tmp/mnt/ac86u
Filesystem UUID: ...
Filesystem magic number: ...
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: unsigned_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 977280
Block count: 3907803
Reserved block count: 195390
Overhead blocks: 87264
Free blocks: 2749312
Free inodes: 970542
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 954
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8144
Inode blocks per group: 509
Flex block group size: 16
Filesystem created: Wed Feb 2 12:02:01 2022
Last mount time: Fri Sep 22 16:52:48 2023
Last write time: Fri Sep 22 16:52:48 2023
Mount count: 129
Maximum mount count: -1
Last checked: Wed Feb 2 12:02:01 2022
Check interval: 0 (<none>)
Lifetime writes: 1152 GB
Reserved blocks uid: 0 (user admin)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 32
Desired extra isize: 32
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: ...
Journal backup: inode blocks