Skip to content

u/CorrosiveTruths

In this archive from Jan 2020 to May 2023

0
posts
22
comments
0
media
41
score

Top comments

Not a clue, but try noatime instead of relatime for starters:

Why I experience poor performance during file access on filesystem?

By default the file system is mounted with relatime flag, which means it must update files' metadata during first access on each day. Since updates to metadata are done as COW, if one visits a lot o files, it results in massive and scattered write operations on the underlying media.

You need to mount file system with noatime flag to prevent this from happening.

More details are in Mount_options#Performance

5 points

Most breakage isn't going to hose your filesystem, it's usually a matter of waiting until a new update fixes the issue, but there are circumstances where you might want to rollback config changes, hold off on updating or even do a restore from backup in extreme cases.

The most important thing to do is re-define breakage so that it's no longer the fault of Arch Linux itself though.

3 points

df isn't the right tool for disk space on btrfs, it's a bit trickier with cow.

Try btrfs fi us <mountpoint> instead.

From the SysadminGuide

All filesystems for best performance should have some minimum percentage of free space, usally [sic] 5-10%. Btrfs, using a two-level space manager (chunks and blocks within chunks) plus being based on (nearly) copy-on-write, benefits from more space to be kept free, around 10-15%, and in particular from having at least one or a few chunks fully unallocated.

It is quite useful to balance periodically any Btrfs volume subject to updates, to prevent the allocation of every chunk in the volume. Usually it is enough to balance periodically only the chunks that are just 50% used or 70% used and this is quick, for example as:

btrfs balance start -musage=50 -dusage=50 ...

There's also a ncdu-style tool specifically for btrfs, btdu to explore your space usage.

Anyway, yes, you've likely got the space tied up in snapshots and need to delete some of those and try to let btrfs have some breathing room (unallocated space) in the future.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.