LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2023, 09:26 AM   #1
faizhalde
LQ Newbie
 
Registered: Feb 2023
Posts: 1

Rep: Reputation: 0
Post Formula to figure out when dirty_background_ratio is triggered vs when dirty_ratio is triggered


Linux version 5.15.37

We want to understand the trigger points for dirty_background_ratio and dirty_ratio

We use prometheus node exporter to monitor our systems and we have the following fields with us

```
node_memory_Active_anon_bytes
node_memory_Active_bytes
node_memory_Active_file_bytes
node_memory_AnonHugePages_bytes
node_memory_AnonPages_bytes
node_memory_Bounce_bytes
node_memory_Buffers_bytes
node_memory_Cached_bytes
node_memory_CommitLimit_bytes
node_memory_Committed_AS_bytes
node_memory_DirectMap1G_bytes
node_memory_DirectMap2M_bytes
node_memory_DirectMap4k_bytes
node_memory_Dirty_bytes
node_memory_FileHugePages_bytes
node_memory_FilePmdMapped_bytes
node_memory_HardwareCorrupted_bytes
node_memory_HugePages_Free
node_memory_HugePages_Rsvd
node_memory_HugePages_Surp
node_memory_HugePages_Total
node_memory_Hugepagesize_bytes
node_memory_Hugetlb_bytes
node_memory_Inactive_anon_bytes
node_memory_Inactive_bytes
node_memory_Inactive_file_bytes
node_memory_KReclaimable_bytes
node_memory_KernelStack_bytes
node_memory_Mapped_bytes
node_memory_MemAvailable_bytes
node_memory_MemFree_bytes
node_memory_MemTotal_bytes
node_memory_Mlocked_bytes
node_memory_NFS_Unstable_bytes
node_memory_PageTables_bytes
node_memory_Percpu_bytes
node_memory_SReclaimable_bytes
node_memory_SUnreclaim_bytes
node_memory_ShmemHugePages_bytes
node_memory_ShmemPmdMapped_bytes
node_memory_Shmem_bytes
node_memory_Slab_bytes
node_memory_SwapCached_bytes
node_memory_SwapFree_bytes
node_memory_SwapTotal_bytes
node_memory_Unevictable_bytes
node_memory_VmallocChunk_bytes
node_memory_VmallocTotal_bytes
node_memory_VmallocUsed_bytes
node_memory_WritebackTmp_bytes
node_memory_Writeback_bytes
```

Will it be as simple as `node_memory_Dirty_bytes / node_memory_MemAvailable_bytes` ?

If so, then why am I seeing this % not even hitting our default `vm.dirty_background_ratio` of 10 ? i.e. it only goes upto 6%. Our systems do write a lot but we are also doing a 5 second monitoring of our systems so I don't think it's the monitoring fooling us
 
Old 02-20-2023, 04:15 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,172

Rep: Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126Reputation: 4126
Things are never that simple in the kernel. Perhaps start by reading this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A formula for 'applicable figure' in IRS form 8962 RandomTroll General 5 12-19-2018 12:31 AM
[SOLVED] hwmon keeps changing on reboots and knocks out fancontrol -- can't figure out the wildcard bassmadrigal Slackware 4 07-06-2016 09:23 AM
Name of formula? n things out of collection of m things hydraMax Programming 3 07-22-2011 11:30 PM
What factors go into deciding the 'dirty_background_ratio' parameter of the redhat VM darsunt Red Hat 1 10-01-2009 03:08 PM
windows & Linux the perfect formula linker General 7 08-23-2003 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration