Course Home | Syllabus | Assignments | Schedule | Downloads | Submissions | [print]

IT 3100: Systems Design and Administration I

System Resources

Due according to the class schedule.

Assignment

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 /usr/local/bin.

Explore CPU resources

Find correct command line options for the cpuhog program so that one instance will use an average of 10% of the CPU.

Cause 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 /tmp

Explore memory resources

Find the correct command line options for the memhog program so that one instance will use an average of 25% of the memory on your system.

Cause 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 /bloat.

Create a file that is 128M.

The fallocate command could be especially useful to do this.

Additional exercises

Ssh into your machine. Use the ps command to find the name of the grandparent of your login shell.

Use the ps command to find the command line arguments to one of the agetty processes.

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 resource_info.txt.

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:     144.38.214.7
user:   cgl
grandparent: my_secret_find_out_yourself
getty: my_secret_find_out_yourself

Submission and Passoff

Last Updated 08/07/2020