information and process management kevin jacobson
TRANSCRIPT
![Page 1: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/1.jpg)
Information and Process Management
Kevin Jacobson
![Page 2: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/2.jpg)
MDS4
• Part of the Globus Toolkit• Used for monitoring the status of the grid
![Page 3: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/3.jpg)
MDS4 as a Web Service
• Collects data from:– Queuing Systems• Torque• PBS• LSF
– Services– Cluster Monitoring• Nagios• Ganglia
![Page 4: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/4.jpg)
WebMDS
• Web Front-end• Generates web content from MDS4’s WS• Teragrid WebMDS– CURRENTLY THE SERVER IS DOWN!
• Another Example– Campus Grid• http://iwrcggt4.fzk.de:8080/webmds/
![Page 5: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/5.jpg)
Food for Thought
• Files in Linux are represented as files• Devices in Linux are represented as files• The state of the system represented as files?
![Page 6: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/6.jpg)
/proc
• Part of the virtual filesystem• Contains information relating to the state of
the system • Processes, CPU, Battery, Sensors
![Page 7: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/7.jpg)
/proc directory tree
• File for every PID• /proc/uptime – System uptime
• /proc/acpi/– Files containing fans, battery, etc..
![Page 8: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/8.jpg)
Commands that utilize /proc
• lspci• apm• free• top
![Page 9: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/9.jpg)
lspci
• Reads from /proc/bus/pci• Provides a list of devices on PCI busEXAMPLE:
![Page 10: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/10.jpg)
apm
• If kernel supports apm• Returns status of the acpi• -s – Sleep the system
• -S– Suspends the system
![Page 11: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/11.jpg)
free
• Displays memory and swap usage on the current machine
Example:$ free
Total Used Free Shared Buffers Cached
Mem: 3044652 2968356 78096 0 383628 1819560
![Page 12: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/12.jpg)
top
Realtime system statistics
![Page 13: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/13.jpg)
Using top
• Use arrows to select Processes– k to Kill– r to Renice
• More commands– m to toggle memories– o to reorder columns– t toggle CPU and process stats
![Page 14: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/14.jpg)
The Windows Registry
• A database of settings and options• Information ranging from startup settings to
serial keys to the user theme• Consists of Hives (logical divisions) containing
keys and subkeys which are organized in a directory-like structure. Within these subkeys are values
![Page 15: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/15.jpg)
Registry Hives
• HKEY_CLASSES_ROOT – Information about file-associations and registered
applications • HKEY_CURRENT_USER– Configuration information relating to the currently
logged in user• HKEY_LOCAL_MACHINE– Contains service, Windows settings and driver
information
![Page 16: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/16.jpg)
Hives …
• HKEY_USERS– Contains the HKEY_CURRENT_USER settings for all
users• HKEY_CURRENT_CONFIG– Information gathered at runtime not stored on the
hard drive• HKEY_PERFORMANCE DATA– Hidden hive containing performance data about
the system
![Page 17: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/17.jpg)
Regedit
• A GUI browser for viewing and modifying the registry database
• Double click on a value to modify• Right Click > New– Add a value in current “directory”
• File > Export – Backup the entire system registry
![Page 18: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/18.jpg)
http://grid.rit.edu 18
![Page 19: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/19.jpg)
.REG file format
[<Hive Name>\<Key Name>\<Subkey>]“Value Name”=<Value Type>:<Value Data>
CMD: REG \s filename.reg
![Page 20: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/20.jpg)
In Conclusion
• System status needs to be monitored• Various paradigms of doing so exists– Web services (MDS4)– File Systems (/proc)– Databases (Windows Registry)
![Page 21: Information and Process Management Kevin Jacobson](https://reader035.vdocuments.net/reader035/viewer/2022062421/56649e535503460f94b49096/html5/thumbnails/21.jpg)
References
GT4 Monitoring and Discovery System: MDS4http://www.globus.org/alliance/events/sc06/MDS4.pdf
MSDN: Registryhttp://msdn.microsoft.com/en-us/library/ms724871(VS.85).aspx
Red Hat: The proc filesystem
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-proc.html