1 / 54

Electrical and Computer Engineering Department  Fairfield University MASTERS THESIS DEFENSE 

Electrical and Computer Engineering Department  Fairfield University MASTERS THESIS DEFENSE  Project: The Initium Remote Job Submission Screensaver By Francisco Castellanos Advisor: Professor Douglas A. Lyon, Ph.D. Outline Overview of a grid system Problem statement

lynne
Télécharger la présentation

Electrical and Computer Engineering Department  Fairfield University MASTERS THESIS DEFENSE 

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Electrical and Computer Engineering Department  Fairfield University MASTERS THESIS DEFENSE  Project: The Initium Remote Job Submission Screensaver By Francisco Castellanos Advisor: Professor Douglas A. Lyon, Ph.D. Fairfield University

  2. Outline • Overview of a grid system • Problem statement • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

  3. What is grid computing? • It is a parallel computing model Fairfield University

  4. Why use grid computing? • It takes advantage networked computers • It executes tasks in parallel • It is FAST Fairfield University

  5. Task 1 Task 2 Network 1 Task 3 Task 4 Task .. Network 2 Task n Fairfield University

  6. Basic Research Goal • Make grid computing a little easier Fairfield University

  7. What is a screen saver? • A program that wakes up when the computer is idle. • A program that terminates when the computer is busy. Fairfield University

  8. Why use a screen saver? • Screensavers are a minimal invasive technology that can be used to volunteer CPU cycles. • Typically, computers are used between 40 and 60 hours out of a 168-hour week. (~ 35% utilization). Fairfield University

  9. Outline • Overview of a grid system • Problem statement • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

  10. Problem Statement • Given a Network Of Workstations (NOW) • Find a way of doing grid computing that is easier • Subject to the constraints: • non-invasive process • Portable solution Fairfield University

  11. The Initium RJS System Web Server Lookup Server Compute Servers Task 1 Task 2 Task 3 Task .. Task n Network Fairfield University

  12. Problem Statement • Idleness detection • Minimize intrusion into the desktop. • Portable screensaver Fairfield University

  13. Lookup Server User PC Yes Inactive Invoke SS No Register with LUS Invoke CS No PC is still Inactive Terminate CS Screensaver Yes Fairfield University

  14. Lookup Server Execute Job Send Answer CS Yes Jobs to execute Send Job No Fairfield University

  15. Outline • Overview of a grid system • Problem statement • Motivation • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

  16. Motivation • Use otherwise idle resources • Inspired by SETI • A Java-based screen saver for grid computing is NEW. Fairfield University

  17. Outline • Overview of a grid system • Problem statement • Motivation • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

  18. Approach User-PC quiet time detection Intrusion Minimization Screensaver Portability Screensaver Deployment Screensaver Integration with IRJS middleware Fairfield University

  19. Outline • Overview of a grid system • Problem statement • Motivation • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

  20. User-PC Inactivity Detection • This process is a platform-specific activity. • SaverBeans Screensaver SDKframework, under the Java.net group. User Inactivity Processing Idleness User Activity Fairfield University

  21. User-PC Quite Time Detection SaverBeans SDK: • Java-based framework. • Provides native subroutines to invoke Java methods in the screensaver. Fairfield University

  22. User-PC Quite Time Detection … public class RJSsaver extends SimpleScreensaver { public void init(){…} public void paint( Graphics g ) {…} public void destroy() {…} … } Fairfield University

  23. User-PC Quite Time Detection … public void init() { iCount = iCount + 1; if (iCount < 2){ startComputeServer(); launchLogMonitor(); } } Fairfield University

  24. User-PC Quite Time Detection Fairfield University

  25. User-PC Quite Time Detection Lookup Server User PC Yes Inactive Invoke SS No Register with LUS Invoke CS Fairfield University

  26. User-PC Quite Time Detection Fairfield University

  27. User-PC Quite Time Detection Fairfield University

  28. Approach User-PC quiescence detection Intrusion Minimization Screensaver Portability Screensaver Deployment Screensaver Integration with IRJS middleware Fairfield University

  29. Intrusion Minimization User Inactivity Join the grid • Resource restoration to its initial state. • Cleanup and communication with LUS. Processing Idleness Processing Jobs User Activity Fairfield University

  30. Intrusion Minimization SaverBeans SDK destroy method: protected void destroy(){ cal= Calendar.getInstance(); killFile.mkdir(); System.out.println("CS Stoping at "+ cal.getTime().toString()); } Fairfield University

  31. Intrusion Minimization CS 1 Task 1 CS 2 Task 2 CS 3 Task 3 CS 4 Task 4 CS .. Task .. CS n Task n Fairfield University

  32. Intrusion Minimization Leasing Process: Send job Processing Job Available Job Completion Send signal Dead Available Busy/Avail. Send response No response Fairfield University

  33. Approach User-PC quiescence detection Intrusion Minimization Screensaver Portability Screensaver Deployment Screensaver Integration with IRJS middleware Fairfield University

  34. Screensaver Portability Macintosh Solution: • Creation of a Objective C program as the screensaver. • Invokes Java Classes. Fairfield University

  35. Screensaver Portability (void)animateOneFrame { … if(i==0){ NSLog(@" First time   %d      SS start now", i); //Call to java class to start CS [NSClassFromString(@"RunCS") newWithSignature:@"(Ljava/lang/String;)",@"start"]; } Fairfield University

  36. Screensaver Portability (void)stopAnimation { //Call to java class to stop CS[NSClassFromString(@"RunCS") newWithSignature:@"(Ljava/lang/String;)",@"stop"]; NSLog(@"SS  stop now %d  ", i); } Fairfield University

  37. Approach User-PC quiescence detection Intrusion Minimization Screensaver Portability Screensaver Deployment Screensaver Integration with IRJS middleware Fairfield University

  38. Screensaver Deployment Involved: • Screensaver Installer • Java Web Start • Configuration Fairfield University

  39. Screensaver Deployment Fairfield University

  40. Screensaver Deployment Operating System Identification: public static boolean isWindows(String str) { if (isWindows()) { String os = getOsName().toLowerCase(); if (os.indexOf(str) > -1) return true; } return false; } public static boolean isWindowsXp() { return isWindows("xp"); } Fairfield University

  41. Screensaver Deployment Beam Over Screensaver resources: public static void downloadScreenSaverJar(File outputJarFile, String urlStr) throws IOException { URL screenSaverUrl = getResourceUrl(urlStr); UrlUtils.getUrl(screenSaverUrl, outputJarFile); } … Fairfield University

  42. Screensaver Deployment Configuration: • Win: Version sensitive directories • For Windows 98: C:/windows/system/. • For Windows NT: C:/winnt/system/. • For other version: C:/windows/sytem32/. • Unix: • Xscreensaver Configuration + User dir • Mac: • Location. (~/Library/Screensavers/) Fairfield University

  43. Screensaver Deployment Fairfield University

  44. Approach User-PC quiescence detection Intrusion Minimization Screensaver Portability Screensaver Deployment Screensaver Integration with IRJS middleware Fairfield University

  45. Screensaver IRJS Integration Submitting Jobs to the IRJS System: • Written in Java • Main() method in class to execute • Independent of user input • Do not use any GUI • Deployed as Java Web Start • Output is written to .jar file. Fairfield University

  46. Screensaver IRJS Integration public class FractalsJob_1 { public static void main(String[] args) { Point from = new Point(0, 0); Point to = new Point(400, from.y + 100); Utils.computeStrip(from, to, "Fractals_out1.ppm.jar"); } } Fairfield University

  47. Screensaver IRJS Integration Fairfield University

  48. Screensaver IRJS Integration Fairfield University

  49. Outline • Overview of a grid system • Problem statement • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

  50. Outline • Overview of a grid system • Problem statement • Approach to solve the problem • Execution • Project Demonstration • Conclusion Fairfield University

More Related