Computer design: Difference between revisions

From 22112
Jump to navigation Jump to search
(Created page with "{| width=500 style="float:right; margin-left: 10px; margin-top: -56px;" |Previous: Coding against databases |Next: Queueing System |} == Material for the lesson == Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=87e6e835-22fc-4eb8-b5df-af27012554f9 Computer architecture and design]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=debcebae-c594-4daf-be11-af2701252f77 Computerome modules]<br> Video: [https://panopto.dtu.dk/Panopto/Pages/...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=debcebae-c594-4daf-be11-af2701252f77 Computerome modules]<br>
Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=debcebae-c594-4daf-be11-af2701252f77 Computerome modules]<br>
Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=1171f7c8-74ea-43be-aff5-af2701250c46 Python IO performance & file buffers]<br>
Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=1171f7c8-74ea-43be-aff5-af2701250c46 Python IO performance & file buffers]<br>
Powerpoint: [https://teaching.healthtech.dtu.dk/material/22112/HPCLife01-Supercomputers.ppt Supercomputers]<br>
Powerpoint: [https://teaching.healthtech.dtu.dk/material/22112/22112_04-Supercomputers.ppt Supercomputers]<br>
Resource: [https://www.computerome.dk/ Computerome 2 general information]<br>
Resource: [https://www.computerome.dk/ Computerome 2 general information]<br>
Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=ed903123-66d6-4dd8-ac09-af1700719d93 Exercises]
Video: [https://panopto.dtu.dk/Panopto/Pages/Viewer.aspx?id=ed903123-66d6-4dd8-ac09-af1700719d93 Exercises]
Line 18: Line 18:
* Set up a personal folder in the ''people'' folder, which is in the course directory. This personal folder is not your home folder, but the place where you put the files/exercises you create during the course. Set permissions so the group can read, otherwise we am unable to read your stuff. Make sure we can easily see what exercise you are solving.
* Set up a personal folder in the ''people'' folder, which is in the course directory. This personal folder is not your home folder, but the place where you put the files/exercises you create during the course. Set permissions so the group can read, otherwise we am unable to read your stuff. Make sure we can easily see what exercise you are solving.
<!-- * Get a student account from me on '''DTU Healthtech''' local systems if you don't have an account already. You need such an account for database exercises later. Not urgent. -->
<!-- * Get a student account from me on '''DTU Healthtech''' local systems if you don't have an account already. You need such an account for database exercises later. Not urgent. -->
== Prices on Computerome ==
As of October 1, 2024 the prices will be changed to the following:
CPU node hour: 5,25kr. (0,13125 kr. per core hour)
GPU node hour: 11,30kr. (0,2825 kr. per core hour)
Storage per TB/month: 59,00kr.


== Exercises ==
== Exercises ==

Latest revision as of 05:27, 8 October 2024

Previous: Coding against databases Next: Queueing System

Material for the lesson

Video: Computer architecture and design
Video: Computerome modules
Video: Python IO performance & file buffers
Powerpoint: Supercomputers
Resource: Computerome 2 general information
Video: Exercises

Tasks to do

  • Set up the two-factor authentication with Entrust IdentityGuard soft token for logging in to Computerome 2.
  • Familiarize yourself with connecting to Computerome. Simple videos are avaliable on the web site.
  • Examine the modules system mentioned in the powerpoint and the web site.
  • Find the course directory /home/projects/pr_course. All files that I refer to during the course will be in that folder.
  • Set up a personal folder in the people folder, which is in the course directory. This personal folder is not your home folder, but the place where you put the files/exercises you create during the course. Set permissions so the group can read, otherwise we am unable to read your stuff. Make sure we can easily see what exercise you are solving.

Prices on Computerome

As of October 1, 2024 the prices will be changed to the following:

CPU node hour: 5,25kr. (0,13125 kr. per core hour)
GPU node hour: 11,30kr. (0,2825 kr. per core hour)
Storage per TB/month: 59,00kr.

Exercises

Create four python scripts which copies the file human.fsa to your own home, using the four different methods mentioned in the powerpoint. Time the programs using ’time’, e.g.

time python mycopy1.py

Also time the simple Unix cp doing the same task. Delete your copy afterwards.
Rank the programs according to performance and explain the difference in execution time.

This is actually a bit hard to do correctly. Considering what you learned about file buffering, then reading the same file twice (or more) in a row will use the file buffers instead of real IO the second time. This means that the first time is always slowest, no matter how efficient the different programs are. You can't even be sure if another student is reading the same file at the same time and hence "disturbs" your measurements.

A way around this problem is simply to use a computer with so little memory, that the file buffer system does not come into play. That is your laptop.
Try to run the scripts on different machines. As minimum you have your laptop, pupil1 and computerome. DTU's HPC system is also an option.