Skip to content

Commit 3edcce0

Browse files
committed
fix formatting
1 parent db3a8b8 commit 3edcce0

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

articles/storage/files/nfs-large-directories.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -74,50 +74,50 @@ The total amount of RAM present on the system doing the enumeration influences t
7474

7575
To do this, you'll need to modify your boot configuration settings by providing an additional kernel command that takes effect during boot to increase the number of hash buckets. Follow these steps.
7676

77-
1. Edit the /etc/default/grub file.
77+
1. Edit the `/etc/default/grub` file.
7878

79-
```bash
80-
sudo vim /etc/default/grub
81-
```
79+
```bash
80+
sudo vim /etc/default/grub
81+
```
8282

83-
1. Add the following text to the file. This command will set apart 128MB as the hash table size, increasing system memory consumption by a maximum of 128MB.
83+
2. Add the following text to the file. This command will set apart 128MB as the hash table size, increasing system memory consumption by a maximum of 128MB.
8484

85-
```bash
86-
GRUB_CMDLINE_LINUX="ihash_entries=16777216"
87-
```
85+
```bash
86+
GRUB_CMDLINE_LINUX="ihash_entries=16777216"
87+
```
8888

89-
If `GRUB_CMDLINE_LINUX` already exists, add `ihash_entries=16777216` separated by a space, like this:
89+
If `GRUB_CMDLINE_LINUX` already exists, add `ihash_entries=16777216` separated by a space, like this:
9090

91-
```bash
92-
GRUB_CMDLINE_LINUX="<previous commands> ihash_entries=16777216"
93-
```
91+
```bash
92+
GRUB_CMDLINE_LINUX="<previous commands> ihash_entries=16777216"
93+
```
9494

95-
1. To apply the changes, run:
95+
3. To apply the changes, run:
9696

97-
```bash
98-
sudo update-grub2
99-
```
97+
```bash
98+
sudo update-grub2
99+
```
100100

101-
1. Restart the system:
101+
4. Restart the system:
102102

103-
```bash
104-
sudo reboot
105-
```
103+
```bash
104+
sudo reboot
105+
```
106106

107-
1. To verify that the changes have taken effect, once the system reboots, check the kernel cmdline commands:
107+
5. To verify that the changes have taken effect, once the system reboots, check the kernel cmdline commands:
108108

109-
```bash
110-
cat /proc/cmdline
111-
```
109+
```bash
110+
cat /proc/cmdline
111+
```
112112

113-
If `ihash_entries` is visible, the system has applied the setting, and enumeration performance should improve exponentially.
113+
If `ihash_entries` is visible, the system has applied the setting, and enumeration performance should improve exponentially.
114114

115-
You can also check the dmesg output to see if the kernel cmdline was applied:
115+
You can also check the dmesg output to see if the kernel cmdline was applied:
116116

117-
```bash
118-
dmesg | grep "Inode-cache hash table"
119-
Inode-cache hash table entries: 16777216 (order: 15, 134217728 bytes, linear)
120-
```
117+
```bash
118+
dmesg | grep "Inode-cache hash table"
119+
Inode-cache hash table entries: 16777216 (order: 15, 134217728 bytes, linear)
120+
```
121121

122122
## File copy and backup operations
123123

0 commit comments

Comments
 (0)