information and process management kevin jacobson

21
Information and Process Management Kevin Jacobson

Upload: hector-blankenship

Post on 28-Dec-2015

220 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Information and Process Management Kevin Jacobson

Information and Process Management

Kevin Jacobson

Page 2: Information and Process Management Kevin Jacobson

MDS4

• Part of the Globus Toolkit• Used for monitoring the status of the grid

Page 3: Information and Process Management Kevin Jacobson

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

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

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

/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

/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

Commands that utilize /proc

• lspci• apm• free• top

Page 9: Information and Process Management Kevin Jacobson

lspci

• Reads from /proc/bus/pci• Provides a list of devices on PCI busEXAMPLE:

Page 10: Information and Process Management Kevin Jacobson

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

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

top

Realtime system statistics

Page 13: Information and Process Management Kevin Jacobson

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

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

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

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

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

http://grid.rit.edu 18

Page 19: Information and Process Management Kevin Jacobson

.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

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

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