Skip to content

Commit 00093a6

Browse files
Move df section out of login node and remove login node comparison
1 parent f5a0428 commit 00093a6

1 file changed

Lines changed: 35 additions & 58 deletions

File tree

_episodes/12-cluster.md

Lines changed: 35 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -92,23 +92,48 @@ system files and change as you install new software or upgrade your OS.
9292
> * __Home__ -- a _network filesystem_, data stored here is available
9393
> throughout the HPC system, and is backed up periodically; however, users
9494
> are limited on how much they can store.
95-
> * __Scratch__ -- also a _network filesystem_, which has more space available
96-
> than the Home directory, but it is not backed up, and should not be used
95+
> * __Scratch__ -- also a _network filesystem_, which has more space available
96+
> than the Home directory, but it is not backed up, and should not be used
9797
> for long term storage.
9898
{: .callout}
9999
100+
You can also explore the available filesystems using `df` to show **d**isk
101+
**f**ree space. The `-h` flag renders the sizes in a human-friendly format,
102+
i.e., GB instead of B. The **t**ype flag `-T` shows what kind of filesystem
103+
each resource is.
104+
105+
```
106+
{{ site.remote.prompt }} df -Th
107+
```
108+
{: .language-bash}
109+
110+
> ## Different results from `df`
111+
>
112+
> * The local filesystems (ext, tmp, xfs, zfs) will depend on whether
113+
> you're on the same login node (or compute node, later on).
114+
> * Networked filesystems (beegfs, cifs, gpfs, nfs, pvfs) will be similar
115+
> -- but may include {{ site.remote.user }}, depending on how it
116+
> is [mounted][mount].
117+
{: .discussion}
118+
119+
> ## Shared Filesystems
120+
>
121+
> This is an important point to remember: files saved on one node
122+
> (computer) are often available everywhere on the cluster!
123+
{: .callout}
124+
100125
## Nodes
101126
102127
Recall that the individual computers that compose a cluster are called _nodes_.
103-
On a cluster, there are different types of nodes for different types of tasks.
104-
The node where you are right now is called the _login node_. A login node
128+
On a cluster, there are different types of nodes for different types of tasks.
129+
The node where you are right now is called the _login node_. A login node
105130
serves as the access point to the cluster _for all users_.
106131
107132
As a gateway, the login node should not be used for time-consuming or
108-
resource-intensive tasks as consuming the cpu or memory of the login node
109-
would slow down the cluster for everyone! It is well suited for uploading
110-
and downloading files, minor software setup, and submitting jobs to the
111-
scheduler. Generally speaking, in these lessons, we will avoid running
133+
resource-intensive tasks as consuming the cpu or memory of the login node
134+
would slow down the cluster for everyone! It is well suited for uploading
135+
and downloading files, minor software setup, and submitting jobs to the
136+
scheduler. Generally speaking, in these lessons, we will avoid running
112137
jobs on the login node.
113138
114139
Who else is logged in to the login node?
@@ -208,60 +233,12 @@ connect to a shared, remote fileserver or cluster of servers.
208233
> {: .solution}
209234
{: .challenge}
210235
211-
> ## Explore the Login Node
212-
>
213-
> Now compare the resources of your computer with those of the login node.
214-
>
215-
> > ## Solution
216-
> >
217-
> > ```
218-
> > {{ site.local.prompt }} ssh {{ site.remote.user }}@{{ site.remote.login }}
219-
> > {{ site.remote.prompt }} nproc --all
220-
> > {{ site.remote.prompt }} free -h
221-
> > ```
222-
> > {: .language-bash}
223-
> >
224-
> > You can get more information about the processors using `lscpu`,
225-
> > and a lot of detail about the memory by reading the file `/proc/meminfo`:
226-
> >
227-
> > ```
228-
> > {{ site.remote.prompt }} less /proc/meminfo
229-
> > ```
230-
> > {: .language-bash}
231-
> >
232-
> > You can also explore the available filesystems using `df` to show **d**isk
233-
> > **f**ree space. The `-h` flag renders the sizes in a human-friendly format,
234-
> > i.e., GB instead of B. The **t**ype flag `-T` shows what kind of filesystem
235-
> > each resource is.
236-
> >
237-
> > ```
238-
> > {{ site.remote.prompt }} df -Th
239-
> > ```
240-
> > {: .language-bash}
241-
> >
242-
> > > ## Different results from `df`
243-
> > >
244-
> > > * The local filesystems (ext, tmp, xfs, zfs) will depend on whether
245-
> > > you're on the same login node (or compute node, later on).
246-
> > > * Networked filesystems (beegfs, cifs, gpfs, nfs, pvfs) will be similar
247-
> > > -- but may include {{ site.remote.user }}, depending on how it
248-
> > > is [mounted][mount].
249-
> > {: .discussion}
250-
> >
251-
> > > ## Shared Filesystems
252-
> > >
253-
> > > This is an important point to remember: files saved on one node
254-
> > > (computer) are often available everywhere on the cluster!
255-
> > {: .callout}
256-
> {: .solution}
257-
{: .challenge}
258-
259236
{% include {{ site.snippets }}/cluster/specific-node-info.snip %}
260237
261-
> ## Compare Your Computer, the Login Node and the Compute Node
238+
> ## Compare Your Computer and the Compute Node
262239
>
263240
> Compare your laptop's number of processors and memory with the numbers you
264-
> see on the cluster login node and compute node. What implications do
241+
> see on the cluster compute node. What implications do
265242
> you think the differences might have on running your research work on the
266243
> different systems and nodes?
267244
>

0 commit comments

Comments
 (0)