Le 25/08/2019 à 02:33, Rick Thomas a écrit :
On Aug 24, 2019, at 4:18 PM, l...@contacte.xyz wrote:
What would be the «best» to choose for an SSD in an usual desktop environment ?
What would be the «best» to choose for an mechanical HD in an usual desktop
environment ?
I don’t think there’s any difference between SSD and spinning disk (for the
particular question of how many inodes are needed).
Indeed inodes have nothing to do with the storage technology but with
filesystem contents type. Each file and directory requires one inode,
and the available inode count is fixed when the filesystem is created.
If you are going to fill a filesystem with small files, you need a lot
of inodes. If you are going to fill a filesystem with big files, you
need fewer inodes.
man mke2fs for details.
As a real-world example, here’s a system I set up a couple of years ago (so
it’s had enough time to reach an equilibrium state) with “typical usage” (the
default).
rbthomas@monk:~$ df -ih | grep -v tmpfs
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 3.0M 580 3.0M 1% /dev
/dev/mapper/monk--vg-root 1.8M 258K 1.5M 15% /
/dev/sda1 61K 337 61K 1% /boot
/dev/mapper/monk--vg-home 5.3M 43K 5.2M 1% /home
/dev/mapper/monk-download 50M 374 50M 1% /download
/dev/mapper/monk-export 25M 18 25M 1% /export
So you could have selected "largefile" for all filesystems but / to save
some space. Unused inodes consume space.