<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="color: rgb(34, 34, 34); width: 1602.64px; line-height: 23.324px;"><a style="color: rgb(6, 73, 119); font-family: Arial; line-height: 23.8px; white-space: normal;"><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;">hi,</span></a></div><div style="color: rgb(34, 34, 34); width: 1602.64px;"><font face="arial, sans-serif"><span style="line-height: normal;">I have two questions about the performance of ls in glusterfs,and I know that &nbsp;the community has noticed the poor performance of ls and made something to solve the problem,like readdir-ahead.Here are my questions.</span></font></div><div style="color: rgb(34, 34, 34); width: 1602.64px; line-height: 23.324px;"><a style="color: rgb(6, 73, 119); font-family: Arial; line-height: 23.8px; white-space: normal;"><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;">1,The preload &nbsp;(a readdir request not initiated by application, but instead triggered by readdir-ahead in an attempt to pre-emptively fill the read-ahead buffer) is in process,</span></a><span style="white-space: normal; font-family: arial, sans-serif; line-height: normal;">a readdir request from application waits for its completion. In the code, when the preload is in progress,it locks the ctx. For applications, the readdir-ahead's request processing is synchronous, is it possible that the preload handles request asynchronously by reducing lock granularity? In other words, the client fetches the dentries from the preload,while the preload gets the dentries from the servers.</span></div><pre style="color: rgb(34, 34, 34); width: 1602.64px; line-height: 23.324px;"><pre style="width: 1602.64px; line-height: 23.324px; display: inline !important;"><span style="white-space: normal; font-family: arial, sans-serif; line-height: normal;">2, when does it can be a lager buffer,like io-cahce,which cached the data or dentries read before? As you know, ls is so slow.</span></pre></pre></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>