<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hasan,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Historically, there have been several bugs related to write grant when max_dirty_mb is set to large values (depending on a few other details of system setup).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Write grant allows the client to write data in to memory and write it out asynchronously.  When write grant is not available to the client, the client is forced to do sync writes at small sizes.  The result looks exactly like this, write performance drops severely.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Depending on what version you're running, you may not have fixes for these bugs.  You could either try a newer Lustre version (you didn't mention what you're running) or just use a smaller value of max_dirty_mb.</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am surprised to see you're still seeing a speedup from max_dirty_mb values over 1 GiB in size.<br>
<br>
Can you describe your system a bit more?  How many OSTs do you have and how many stripes are you using?  max_dirty_mb is a per OST value on the client, not a global one.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-Patrick</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of Hasan Rashid via lustre-discuss <lustre-discuss@lists.lustre.org><br>
<b>Sent:</b> Friday, March 25, 2022 11:45 AM<br>
<b>To:</b> lustre-discuss@lists.lustre.org <lustre-discuss@lists.lustre.org><br>
<b>Subject:</b> [lustre-discuss] Write Performance is Abnormal for max_dirty_mb Value of 2047</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-family:verdana,sans-serif">Hi Everyone,<br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif">As the manual suggests, the valid value range for max_dirty_mb is the values larger than 0 and smaller than the lesser of 2048 MiB or 1/4 of client RAM. In my system, the client's RAM is 196
 GiB.<b> So, the maximum valid value for max_dirty_mb(mdm) is 2047 MiB.</b></div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif">However, when we set the max_dirty_mb value to 2047,
<b>we see very low write throughput for multiple Filebench workloads that we have tested so far</b>. I am providing details for one example of the tested workload below.</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><b><u>Workload Detail:</u></b> We are doing only random write operation of 1MiB size from one process and one thread to a single large file of 5GiB size.</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><b><u>Observed Result:</u></b> As you can see from the below diagram, as we increase the mdm value from 768 to 1792 by an amount of 256 in each step, the write throughput has increased gradually.
 However, for the mdm value of 2047, the result dropped very significantly. The observation holds true for all the workloads we tested so far.</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><span id="x_gmail-docs-internal-guid-18e99bf1-7fff-815f-a4c8-b3622739cea4"><span style="font-size:20pt; font-family:Arial; color:rgb(0,0,0); background-color:transparent; font-variant-numeric:normal; font-variant-east-asian:normal; vertical-align:baseline; white-space:pre-wrap"><span style="border:none; display:inline-block; overflow:hidden; width:280px; height:277px"><img width="280" height="277" style="margin-left:0px; margin-top:0px" src="https://lh3.googleusercontent.com/iEqpGNZhI9r9jJCLq0rWPvFADJRXkKKKZnyCV_8m3nhiHggNqWU9d_7WTUU0yeb011nxjULF4_iLkI7TIc0qe5el11PJI3i9Jot9KveXUil98A_UEnBojFqAHfK94ve1foQT39m2"></span></span></span><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif">I am unable to figure out why we would have such low performance at the mdm value of 2047. Please share any insights you have that would be helpful for me to understand the aforementioned scenario.</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif">Best Wishes,</div>
<div class="x_gmail_default" style="font-family:verdana,sans-serif">Md Hasanur Rashid</div>
</div>
</div>
</body>
</html>