Skip to content

u/ccc1386

In this archive from Feb 2016 to Oct 2019

36
posts
153
comments
1
media
713
score

there's no pool size that you can configure

Hmm, if that is the case, what would zswap_max_pool_percent refer to in this snippet from /etc/systemd/swap that ships with systemd-swap?

  ################################################################################
  # Zswap
  #
  # Kernel >= 3.11
  # Zswap create compress cache between swap and memory for reduce IO
  # https://www.kernel.org/doc/Documentation/vm/zswap.txt

  zswap_enabled=1
  zswap_compressor=lz4      # lzo lz4
  zswap_max_pool_percent=25 # 1-99
  zswap_zpool=zbud          # zbud z3fold
1 points

Thanks for the suggestions everyone! I did a few things and now my desktop responsiveness is significantly better.

First I made these changes:

$ cat /etc/sysctl.d/99-performance.conf 
vm.swappiness=1
vm.vfs_cache_pressure=50
vm.dirty_background_ratio = 3
vm.dirty_ratio = 10

It seemed to improve things a little bit but I was still experiencing freezing

So then I switched to BFQ scheduler. It's amazing! I have almost 0 freezing even under the heaviest workloads.

1 points
cp /usr/share/applications/chromium.desktop /usr/local/share/applications
# edit /usr/local/share/applications/chromium.desktop to have your launch args

This may or may not work depending on your desktop environment/application launcher. It relies on the fact that things in /usr/local typically shadow things in /usr.

When chromium gets an update the file at /usr/share/applications will be reset but the file at /usr/local/share/applications will not. You may have a problem if chromium.desktop actually gets changed during an upgrade (instead of just reset), since your customized desktop file may no longer work, but from what I've seen that's pretty rare.

-1 points

Hey, so your last little paragraph ended up solving my problem.

Try mounting as CIFS, instead of using gvfs-smb. Anything gvfs is automatically fuse, which has less performance than a lower level implementation.

I mounted the drive using CIFS and now it's much, much better. Thanks a bunch.

Although... I am still wondering why gfvs-smb can't achieve the same performance on arch as on Ubuntu. Maybe the Ubuntu version of gvfs-smb has some patches we don't have on arch?

1 points

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.