Yes!
For a bit more context, this is for a product that was dealing with lots and lots of DB writes, which were definitely the main issue, but while hunting we stumbled on this. Its up to you/the much more experienced developers here to decide if its worth it for longevity.
ALSO BIG NOTE: We haven’t really tested this in full production or under any kind of stress yet. Only using iotop and inotify and pidstat to see the differences. Please do at your own risk lol
Okay, what I did was very very simple. And being completely honest, I used chatgpt to guide me through this as I am an Ignition guy, not a chrome dev. But in short, you can set chrome to open a browser with a dedicated user directory. Link to Docs
The goal was to get rid of this top line “Chrome network.mojom.NetworkService”. As far as I could tell (and chatgpt said), this is the source of the CookieJournal, which seemed to be the source of the high amounts of writes (about 1/min, and at least 500kb I think).
This can be done via command line, which is what I did for my testing, but in theory you can also embed it into a shortcut. I am working on getting that part working. Also this was all done on Linux.
Command (with some spots for you to insert your stuff)
sudo -u YOUR_USER bash -lc '
export DISPLAY=:0
export XAUTHORITY=/home/*YOUR_USER*/.Xauthority
/opt/google/chrome/google-chrome \
--user-data-dir=/dev/shm/*RAM_FOLDER_NAME* \
--no-first-run \
--profile-directory=Default \
http://localhost:8088/data/perspective/client/*PROJECT_NAME* \
--start-fullscreen &
'
Now this could have been our system, as we aren’t the best at these kinds of optimizing settings. So, If you want to test like I did, you can run this command to watch SSD writing. Keep in mind, this only happens if the perspective client is on the gateway computer. This command will watch and add on for as long as it runs. Link to Guide
sudo iotop -oPa
I also was looking for frequency, so I ran a few versions of this, but here was my favorite, as it logged 30 minutes to get a good scale:
sudo -u *YOUR_USER* bash -lc '
timeout 1800s inotifywait -mr \
-e close_write,modify,create,delete,move \
--timefmt "%F %T" \
--format "%T %e %w%f" \
~/.config/google-chrome/Default \
> /tmp/chrome_inotify_30min.log
'
Finally, I tested with pidstat as well: Link to Guide
sudo pidstat -d 60 5