Force no more than one write/sync to disk in X seconds
Asked Answered
O

3

9

I'm worried that I see through the disk LED and iotop quite some write activity every couple of seconds, mostly coming from the chromium's processes, on a completely idle system.

It doesn't make any sense at all to have such a high number of writes to disk, even less with SSD disks. The reads isn't a problem for me, also because I have plenty of disk cache on my 20gb RAM notebook.

The commit option (which is by default 30s) obviously isn't the solution. Tried to increase or even decrease and still see one write every couple of seconds.

So is there a way to force not more than one write per arbitrary interval?

Outspread answered 28/12, 2016 at 14:16 Comment(1)
Why are you concerning yourself with a high number of write operations? If you're worried about your SSD wearing out, check out this article to put yourself at ease.Keef
O
0

PSD - Profile Sync Daemon - is the specific solution for Chromium and other browsers https://wiki.archlinux.org/title/profile-sync-daemon

https://github.com/graysky2/profile-sync-daemon

Outspread answered 8/6, 2021 at 17:13 Comment(0)
H
5

At first check your linux is using CFQ scheduler. then you can use ionice to control I/O scheduling class and priority of a program. It supports following three scheduling classes (quoting from the man page):

Idle : A program running with idle io priority will only get disk time when no other program has asked for disk io for a defined grace period. The impact of idle io processes on normal system activity should be zero. This scheduling class does not take a priority argument. Best effort : This is the default scheduling class for any process that hasn't asked for a specific io priority. Programs inherit the CPU nice setting for io priorities. This class takes a priority argument from 0-7, with lower number being higher priority. Programs running at the same best effort priority are served in a round-robin fashion. This is usually recommended for most application. Real time : The RT scheduling class is given first access to the disk, regardless of what else is going on in the system. Thus the RT class needs to be used with some care, as it can starve other processes. As with the best effort class, 8 priority levels are defined denoting how big a time slice a given process will receive on each scheduling window. This is should be avoided for all heavily loaded system.

ionice options PID ionice options -p PID ionice -c1 -n0 PID

for limiting more than this i think you should use of your SAN utilities.

Horseweed answered 1/1, 2017 at 7:19 Comment(4)
ionice -c3 chromium (-c3 = idle) seems to have improved things a bitOutspread
what are SAN utilities?Outspread
in case of SAN Storage like as EMC or HTS. These Providers have own utilities to manage disks.I'm not sure about it, maybe they have utility to manage these.Horseweed
This will most likely not solve OP's problem as his system is idle. IO scheduling just handles competing requests for IO bandwidth under load. As long as IO bandwidth is not saturated no processes's IO requests will be delayed.Korea
A
0

Take a look at eatmydata (https://github.com/stewartsmith/libeatmydata).

It could be ok for you, but read all the docs and think twice before using it...

Acidulate answered 1/1, 2017 at 8:27 Comment(0)
O
0

PSD - Profile Sync Daemon - is the specific solution for Chromium and other browsers https://wiki.archlinux.org/title/profile-sync-daemon

https://github.com/graysky2/profile-sync-daemon

Outspread answered 8/6, 2021 at 17:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.