You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hpc/03_storage/05_best_practices.mdx
+46-34Lines changed: 46 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,40 +8,6 @@ _One of the common issues users report is running out of inodes in their home di
8
8
9
9
Users can check their current utilization of quota using the myquota command. The myquota command provides a report of the current quota limits on mounted file systems, the user's quota utilization, as well as the percentage of quota utilization. For details, please see [myquota](../06_tools_and_software/08_utils.mdx#myquota)
10
10
11
-
You can use the following command to print the list of files within each sub-folder for a given directory:
12
-
```sh
13
-
$cd$HOME
14
-
$du --inodes -h --max-depth=1
15
-
6 ./.ssh
16
-
88 ./.config
17
-
2 ./.vnc
18
-
2 ./.aws
19
-
3 ./.lmod.d
20
-
5.3K ./.local
21
-
3 ./.dbus
22
-
408 ./ondemand
23
-
2 ./.virtual_documents
24
-
6 ./.nv
25
-
6.7K ./.pixi
26
-
33 ./workshop_scripts
27
-
5 ./.cupy
28
-
6 ./.gnupg
29
-
1 ./.emacs.d
30
-
194 ./.nextflow
31
-
6 ./.terminfo
32
-
2 ./.conda
33
-
2 ./.singularity
34
-
3 ./.vast-dev
35
-
1 ./custom
36
-
185 ./genai-workshop
37
-
6 ./.atuin
38
-
1 ./.apptainer
39
-
9 ./.subversion
40
-
4 ./packages
41
-
1.4K ./.cache
42
-
15K .
43
-
```
44
-
45
11
## Large number of small files
46
12
In case your dataset or workflow requires to use large number of small files, this can create a bottleneck due to read/write rates. Please refer to [our page on working with a large number of files](./06_large_number_of_small_files.md) to learn about some of the options we recommend to consider.
47
13
@@ -51,3 +17,49 @@ Your home directory is limited to a relatively small number of inodes (30,000).
51
17
:::
52
18
53
19
Please review the [Package Management section](../06_tools_and_software/01_intro.md#package-management-for-r-python--julia-and-conda-in-general) of the [Torch Software Page](../06_tools_and_software/01_intro.md).
20
+
21
+
## Troubleshooting quota issues
22
+
23
+
:::warning
24
+
Being over your quota can cause problems logging into OOD and other issues. If you find that you're suddenly unable to log in, one of the first things you should check is your quota with the [`myquota`](../06_tools_and_software/08_utils.mdx#myquota) command.
25
+
:::
26
+
27
+
If you find that you're over your quota, `myquota` will show you if you are over your quota for space or i-nodes or both. You can then see which folders most contribute to you being over quota with the following commands:
28
+
29
+
Here's how you can see which folders contain the most files:
30
+
```bash
31
+
du --inodes -h -s -- * .[!.]* ..?*2>/dev/null | sort -hr | head -n 5
32
+
```
33
+
and here's how you can see which ones most contribute to your disk usage:
34
+
```bash
35
+
du -h -s -- * .[!.]* ..?*2>/dev/null | sort -hr | head -n 5
36
+
```
37
+
38
+
### Moving common dot directories from `/home` to `/scratch`
39
+
40
+
As mentioned elsewhere in our documentation, a problem we often see for our users is that of filling their `/home` directories by using common tools like VSCode, Cursor, etc. These applications put a dot directory in your `/home` directory and it can quickly overwhelm your quota.
41
+
42
+
Our recommended fix for this is to make a directory for these files in your `/scratch` directory and then make a symbolic link in your `/home` that points to the one you just created in `/scratch`. This allows these applications to write to what appears to be your `/home` directory, but is actually stored in your `/scratch` directory. This can be accomplished with the following commands:
43
+
44
+
:::warning
45
+
The first part of the following commands will remove the contents of the dot directory in your `${HOME}` directory. Be sure to copy anything you'd like to save from that directory before executing.
For details about changing your default RStudio directory please see [User state storage](https://docs.posit.co/ide/server-pro/admin/rstudio_pro_sessions/workspace_management.html#user-state-storage).
64
+
65
+
Please contact [hpc@nyu.edu](mailto:hpc@nyu.edu) if you have any questions.
0 commit comments