162306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/
262306a36Sopenharmony_ciDate:		January 2008
362306a36Sopenharmony_ciContact:	Peter Zijlstra <a.p.zijlstra@chello.nl>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciProvide a place in sysfs for the backing_dev_info object.  This allows
762306a36Sopenharmony_cisetting and retrieving various BDI specific variables.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciThe <bdi> identifier can be either of the following:
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciMAJOR:MINOR
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	Device number for block devices, or value of st_dev on
1462306a36Sopenharmony_ci	non-block filesystems which provide their own BDI, such as NFS
1562306a36Sopenharmony_ci	and FUSE.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciMAJOR:MINOR-fuseblk
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci	Value of st_dev on fuseblk filesystems.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_cidefault
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci	The default backing dev, used for non-block device backed
2462306a36Sopenharmony_ci	filesystems which do not provide their own BDI.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/read_ahead_kb
2762306a36Sopenharmony_ciDate:		January 2008
2862306a36Sopenharmony_ciContact:	Peter Zijlstra <a.p.zijlstra@chello.nl>
2962306a36Sopenharmony_ciDescription:
3062306a36Sopenharmony_ci	Size of the read-ahead window in kilobytes
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	(read-write)
3362306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/min_ratio
3462306a36Sopenharmony_ciDate:		January 2008
3562306a36Sopenharmony_ciContact:	Peter Zijlstra <a.p.zijlstra@chello.nl>
3662306a36Sopenharmony_ciDescription:
3762306a36Sopenharmony_ci	Under normal circumstances each device is given a part of the
3862306a36Sopenharmony_ci	total write-back cache that relates to its current average
3962306a36Sopenharmony_ci	writeout speed in relation to the other devices.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci	The 'min_ratio' parameter allows assigning a minimum
4262306a36Sopenharmony_ci	percentage of the write-back cache to a particular device.
4362306a36Sopenharmony_ci	For example, this is useful for providing a minimum QoS.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci	(read-write)
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/min_ratio_fine
4862306a36Sopenharmony_ciDate:		November 2022
4962306a36Sopenharmony_ciContact:	Stefan Roesch <shr@devkernel.io>
5062306a36Sopenharmony_ciDescription:
5162306a36Sopenharmony_ci	Under normal circumstances each device is given a part of the
5262306a36Sopenharmony_ci	total write-back cache that relates to its current average
5362306a36Sopenharmony_ci	writeout speed in relation to the other devices.
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci	The 'min_ratio_fine' parameter allows assigning a minimum reserve
5662306a36Sopenharmony_ci	of the write-back cache to a particular device. The value is
5762306a36Sopenharmony_ci	expressed as part of 1 million. For example, this is useful for
5862306a36Sopenharmony_ci	providing a minimum QoS.
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci	(read-write)
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/max_ratio
6362306a36Sopenharmony_ciDate:		January 2008
6462306a36Sopenharmony_ciContact:	Peter Zijlstra <a.p.zijlstra@chello.nl>
6562306a36Sopenharmony_ciDescription:
6662306a36Sopenharmony_ci	Allows limiting a particular device to use not more than the
6762306a36Sopenharmony_ci	given percentage of the write-back cache.  This is useful in
6862306a36Sopenharmony_ci	situations where we want to avoid one device taking all or
6962306a36Sopenharmony_ci	most of the write-back cache.  For example in case of an NFS
7062306a36Sopenharmony_ci	mount that is prone to get stuck, or a FUSE mount which cannot
7162306a36Sopenharmony_ci	be trusted to play fair.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci	(read-write)
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/max_ratio_fine
7662306a36Sopenharmony_ciDate:		November 2022
7762306a36Sopenharmony_ciContact:	Stefan Roesch <shr@devkernel.io>
7862306a36Sopenharmony_ciDescription:
7962306a36Sopenharmony_ci	Allows limiting a particular device to use not more than the
8062306a36Sopenharmony_ci	given value of the write-back cache.  The value is given as part
8162306a36Sopenharmony_ci	of 1 million. This is useful in situations where we want to avoid
8262306a36Sopenharmony_ci	one device taking all or most of the write-back cache.  For example
8362306a36Sopenharmony_ci	in case of an NFS mount that is prone to get stuck, or a FUSE mount
8462306a36Sopenharmony_ci	which cannot be trusted to play fair.
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci	(read-write)
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/min_bytes
8962306a36Sopenharmony_ciDate:		October 2022
9062306a36Sopenharmony_ciContact:	Stefan Roesch <shr@devkernel.io>
9162306a36Sopenharmony_ciDescription:
9262306a36Sopenharmony_ci	Under normal circumstances each device is given a part of the
9362306a36Sopenharmony_ci	total write-back cache that relates to its current average
9462306a36Sopenharmony_ci	writeout speed in relation to the other devices.
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci	The 'min_bytes' parameter allows assigning a minimum
9762306a36Sopenharmony_ci	percentage of the write-back cache to a particular device
9862306a36Sopenharmony_ci	expressed in bytes.
9962306a36Sopenharmony_ci	For example, this is useful for providing a minimum QoS.
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ci	(read-write)
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/max_bytes
10462306a36Sopenharmony_ciDate:		October 2022
10562306a36Sopenharmony_ciContact:	Stefan Roesch <shr@devkernel.io>
10662306a36Sopenharmony_ciDescription:
10762306a36Sopenharmony_ci	Allows limiting a particular device to use not more than the
10862306a36Sopenharmony_ci	given 'max_bytes' of the write-back cache.  This is useful in
10962306a36Sopenharmony_ci	situations where we want to avoid one device taking all or
11062306a36Sopenharmony_ci	most of the write-back cache.  For example in case of an NFS
11162306a36Sopenharmony_ci	mount that is prone to get stuck, a FUSE mount which cannot be
11262306a36Sopenharmony_ci	trusted to play fair, or a nbd device.
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ci	(read-write)
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/strict_limit
11762306a36Sopenharmony_ciDate:		October 2022
11862306a36Sopenharmony_ciContact:	Stefan Roesch <shr@devkernel.io>
11962306a36Sopenharmony_ciDescription:
12062306a36Sopenharmony_ci	Forces per-BDI checks for the share of given device in the write-back
12162306a36Sopenharmony_ci	cache even before the global background dirty limit is reached. This
12262306a36Sopenharmony_ci	is useful in situations where the global limit is much higher than
12362306a36Sopenharmony_ci	affordable for given relatively slow (or untrusted) device. Turning
12462306a36Sopenharmony_ci	strictlimit on has no visible effect if max_ratio is equal to 100%.
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ci	(read-write)
12762306a36Sopenharmony_ciWhat:		/sys/class/bdi/<bdi>/stable_pages_required
12862306a36Sopenharmony_ciDate:		January 2008
12962306a36Sopenharmony_ciContact:	Peter Zijlstra <a.p.zijlstra@chello.nl>
13062306a36Sopenharmony_ciDescription:
13162306a36Sopenharmony_ci	If set, the backing device requires that all pages comprising a write
13262306a36Sopenharmony_ci	request must not be changed until writeout is complete.
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ci	(read-only)
135