Skip to content

Commit d95aed6

Browse files
authored
Merge pull request #1843 from madhavi927/patch-1
Update files-troubleshoot-performance.md
2 parents 00c5d2b + e8434a0 commit d95aed6

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

support/azure/azure-storage/files/performance/files-troubleshoot-performance.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,17 +239,34 @@ It's possible you're experiencing throttling, and your requests are being sent t
239239

240240
Ensure your app is within the [Azure Files scale targets](/azure/storage/files/storage-files-scale-targets#azure-files-scale-targets). If you're using standard Azure file shares, consider switching to premium.
241241

242+
### Cause 3: Azure File Share reaches capacity
243+
244+
If the Azure file share is close to reaching its capacity, an important step is to identify the largest files and directories in order to optimize storage. This step helps you to understand which files and folders are using the most space.
245+
246+
### Workaround
247+
248+
To get a comprehensive view of storage usage across the entire share, mount the root of the share. This action enables a thorough inspection of file and directory sizes. At the root of the file share, run the following commands to identify the largest files and directories:
249+
250+
```bash
251+
cd /path/to/mount/point
252+
du -ah --max-depth=1 | sort -rh | head -n 20
253+
```
254+
255+
This command displays the 20 largest files and directories in descending order of size. This display provides a clear overview of storage consumption.
256+
257+
If you can't mount the root of the share, use Azure Storage Explorer or a third-party tool to analyze storage usage. These tools provide similar insights into file and directory sizes without requiring you to mount the share.
258+
242259
## Throughput on Linux clients is lower than that of Windows clients
243260

244261
### Cause
245262

246-
This is a known issue with implementing the SMB client on Linux.
263+
This is a known issue that affects implementing the SMB client on Linux.
247264

248265
### Workaround
249266

250267
- Spread the load across multiple VMs.
251-
- On the same VM, use multiple mount points with a `nosharesock` option, and spread the load across these mount points.
252-
- On Linux, try mounting with a `nostrictsync` option to avoid forcing an SMB flush on every `fsync` call. For Azure Files, this option doesn't interfere with data consistency, but it might result in stale file metadata on directory listings (`ls -l` command). Directly querying file metadata by using the `stat` command will return the most up-to-date file metadata.
268+
- On the same VM, use multiple mount points that have a `nosharesock` option, and spread the load across these mount points.
269+
- On Linux, try mounting by using a `nostrictsync` option to avoid forcing an SMB flush on every `fsync` call. For Azure Files, this option doesn't interfere with data consistency, but it might cause stale file metadata on directory listings (`ls -l` command). Directly querying file metadata by using the `stat` command returns the most up-to-date file metadata.
253270

254271
## High latencies for metadata-heavy workloads involving extensive open/close operations
255272

0 commit comments

Comments
 (0)