[SSI] openssi/kernel/include/cluster/ssi/mosixll balance.h, 1.6, 1.7

Roger Tsang <[email protected]> Mon, 25 Oct 2010 05:01:40 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/mosixll
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv2173/include/cluster/ssi/mosixll

Modified Files:
      Tag: OPENSSI-FC
	balance.h 
Log Message:
MOSIX:
- Do lockless loadinfo[] reads. Reduce contention in various paths.
  - Upgrade loadinfo_lock read/write spinlock to spinlock.
- Re-enable interrupts for loadinfo_lock and whereto_lock. OpenSSI does not acquire these locks in interrupt context.
- In memory_balance() allow to kmalloc() to fail. Avoid blocking ics_llunack_daemon.
- Optimize away the for-loop in release_migrations().

 cluster/ssi/mosixll/balance.c         |   68 ++++++++++++---
 cluster/ssi/mosixll/info.c            |   38 ++++++--
 cluster/ssi/mosixll/kernel.c          |    8 -
 cluster/ssi/mosixll/load.c            |   24 ++---
 cluster/ssi/util/load_level.c         |  115 +++++++++++---------------
 include/cluster/ssi/mosixll/balance.h |    2 
 6 files changed, 145 insertions(+), 110 deletions(-)


Index: balance.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/mosixll/balance.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- balance.h	27 Oct 2009 03:18:30 -0000	1.6
+++ balance.h	25 Oct 2010 05:01:38 -0000	1.7
@@ -141,7 +141,7 @@
 extern int latest_free_mem;	/* in pages */
 #endif
 
-extern rwlock_t loadinfo_lock;
+extern spinlock_t loadinfo_lock;
 
 #ifdef SSI_NOTUSED
 #if defined(CONFIG_MOSIX_DIAG) && defined(CONFIG_SMP)


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev