IT 3100: Systems Design and Administration I
Due according to the class schedule.
In this assignment, you will use the virtual machine created earlier for exploring system resources.
Throughout the semester this machine must be running and functioning well.
Configure a system for use as a resource testing platform
Use the machine created in an earlier assignment.
Reconfigure the system to only have 512 MByte of RAM. You must shutdown the system, change its RAM configuration, and then start it up again.
Download the resource exercising programs from the
course downloads page. Install them in
Explore CPU resources
Find correct command line options for the
program so that one instance will use an average
of 10% of the CPU.
cpuhog to launch from
cron as your login user,
at 15 minutes past
the hour, at noon and midnight, such that it will start
up again if it is no longer running.
It should use the options for 10% CPU
usage. Note: the hog programs create a file in
/tmp when they are running to ensure
only one instance of each hog program can run at a time.
If you have problems starting one of these programs, go delete the lock file in
Explore memory resources
Find the correct command line options for the
program so that one instance will use an average of
25% of the memory on your system.
memhog to launch from cron on Mondays, Wednesdays,
and Fridays at 7:30 am, as your login user, such that
it will start up again if it is no longer running.
It should use the options
for 25% memory usage.
Explore disk resources
Create a directory on your system named
Create a file that is 128M.
fallocate command could be especially useful to do this.
Ssh into your machine. Use the
ps command to find
the name of the grandparent of your login shell.
ps command to find the command line
arguments to one of the
Note: The agetty process may not show up if you are logged in via VNC. If you don’t see the process, connect via VNC and make sure all users are LOGGED OUT. Then, check to see if agetty is running again
Submission File Format
The submission file is a UNIX text file, and must have this format, exactly!
The file must be named
ip: ip_address_of_system user: user_name_that_runs_cron_jobs grandparent: name_of_shell_grandparent getty: getty_process_arguments
For example, my file would look like this:
ip: 18.104.22.168 user: cgl grandparent: my_secret_find_out_yourself getty: my_secret_find_out_yourself
Submission and Passoff
Use the Submisions link at the top of the page to submit your text file to the
Check back at the submissions site for feedback on the completeness of your work. Fix anything that’s wrong. Repeat.
memhogprocesses will be checked for usage. The
/bloatdirectory will be checked for usage. The cron entries will be checked for correct run times.
Last Updated 08/07/2020