Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fairfield University Electrical and Computer Engineering Department Electrical and Computer Engineering Department Fairfield University Fairfield University.

Similar presentations


Presentation on theme: "Fairfield University Electrical and Computer Engineering Department Electrical and Computer Engineering Department Fairfield University Fairfield University."— Presentation transcript:

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

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

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

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

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

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

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

8 Fairfield University 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).

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

10 Fairfield University 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

11 Fairfield University Task 1 Task 2 Task 3 Task.. Task n Network Compute ServersLookup ServerWeb Server The Initium RJS System

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

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

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

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

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

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

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

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

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

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

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

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

24 Fairfield University User-PC Quite Time Detection

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

26 Fairfield University User-PC Quite Time Detection

27 Fairfield University User-PC Quite Time Detection

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

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

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

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

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

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

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

35 Fairfield University 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"]; }

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

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

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

39 Fairfield University Screensaver Deployment

40 Fairfield University 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"); }

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

42 Fairfield University 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/)

43 Fairfield University Screensaver Deployment

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

45 Fairfield University 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.

46 Fairfield University 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"); }

47 Fairfield University Screensaver IRJS Integration

48 Fairfield University Screensaver IRJS Integration

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

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

51 Fairfield University Conclusion Experiment # Experiment Desc.ComputersNumber of JobsTotal Processing Time 1One CSA82m 53 sec 2Two CS(s)A, B81m 7 sec 3Three CS(s)A, B, C81 m 2 sec 4Four CS(s)A, B, C, D850 sec Experimental Results:

52 Fairfield University Conclusion

53 Conclusion Future Work : Mac implementation with SaverBeans Tasks-resource matching. Current: first- come first-serve Improved interface to submit jobs to IRJS. Job partitioning. Current: manual

54 Fairfield University Q/A


Download ppt "Fairfield University Electrical and Computer Engineering Department Electrical and Computer Engineering Department Fairfield University Fairfield University."

Similar presentations


Ads by Google