[SSI] openssi/kernel/include/cluster/ssi/mosixll mosixtask.h, 1.10, 1.11

Roger Tsang <[email protected]> Tue, 09 Nov 2010 02:31:03 +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-serv10374/include/cluster/ssi/mosixll

Modified Files:
      Tag: OPENSSI-FC
	mosixtask.h 
Log Message:
MOSIX:
- ssi_do_decay: fix did not operate on chosen task.
- ssi_do_decay: deprecated. consider() no longer requires mosix_task->dctime.
- consider: reduce excessive stack usage and useless math.
- mosix_calc_process_loads: remove unused code.
- mosix_calc_process_loads: no need to test for interrupt context. Caller in process context.
- mosix_calc_process_loads: calculate struct mosix_task->load for thread group so that in release_migrations() the thread group's load is accounted for when adjusting home/destination node's load value. OpenSSI migrates the thread group.
- release_migrations: clean-up and split CONFIG_SSI code.
- memory_badly_required: clean-up and split SSI_BALANCE_MEMORY code.
- memory_badly_required: only look at thread group leader's mosix_task->pages_i_bring. OpenSSI migrates the thread group.
- mosix_calc_process_loads, mosix_mem_daemon: OpenSSI is only interested in loadlevelable processes. Reduce unnecessary work.
- mosix_mem_daemon: call sort_and_age_pages() for thread group leaders only. reduce redundant work. (#ifdef SSI_BALANCE_MEMORY)
- run_over_dirty_pages: optimize away pte_really_dirty() call for the common code path.
- choose: use KERN_DEBUG log level. (#ifdef DEBUG)
- deactivate_task, activate_task: kernel threads no longer call run_on() / run_off(). Kernel threads do not migrate.
- Fix incorrect last_mconsider value in struct mosix_task after process migration. time_now() values are cross-node incompatible.
- No need to use task_rq_lock() to protect mosix_task->load. Switch to task_lock().

MOSIX (#ifdef REXEC_LOADTABLE_FAST):
- release_migrations: fix forgot to re-calculate value of altload in loadinfo array. Without recalculating altload other processes were not discouraged from migrating away. Regression introduced in CVS tag OPENSSI-FC-1-9-6-PRE45.
- mosix_calc_load: calculate the cached altload using value of newload, not export_load. In other places altload() is passed the value of load field in loadinfo structure and mosix_calc_load() stores the value of newload in load field.

 cluster/ssi/mosixll/balance.c           |  244 ++++++------------------
 cluster/ssi/mosixll/freemem.c           |   82 +++-----
 cluster/ssi/mosixll/info.c              |  160 ++++++++-------
 cluster/ssi/mosixll/kernel.c            |    3 
 cluster/ssi/mosixll/load.c              |   95 +++++----
 cluster/ssi/mosixll/service.c           |    4 
 cluster/ssi/vproc/rproc_cli_pproc.c     |    4 
 cluster/ssi/vproc/rproc_svr_pproc.c     |    4 
 include/cluster/gen/rproc_platform.x    |    6 
 include/cluster/ssi/mosixll/mosixtask.h |    6 
 kernel/sched.c                          |    6 
 11 files changed, 269 insertions(+), 345 deletions(-)


Index: mosixtask.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/mosixll/mosixtask.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- mosixtask.h	25 Oct 2010 05:50:41 -0000	1.10
+++ mosixtask.h	9 Nov 2010 02:31:01 -0000	1.11
@@ -47,15 +47,13 @@
 	int lock_depth;			/* of the mosix_flag */
 #endif
 	volatile uint32_t stay;		/* reasons why process must stay */
-	int64_t last_consider;	/* user time since last considered migration */
-	now_t last_mconsider;	/* when last selected for memory-balancing */
+	unsigned int last_consider;	/* user+sys time since last considered migration (ms) */
+	u64 last_mconsider; /* when last selected for memory-balancing (jiffies_64) */
 #ifdef SSI_BALANCE_MEMORY
 	unsigned long pages_i_bring;	/* # if pages still to be brought */
 #else
 	int pages_i_bring;	/* # if pages still to be brought */
 #endif
-	int64_t dctime;		/* decayed user-time (ms) */
-	short decay;		/* decay factor (out of DECAY_QUOTIENT) */
 	unsigned long ran;		/* clock_t CPU used since last snap */
 	unsigned long runstart;	/* SSI_XXX: cputime_t */
 	unsigned long load;		/* estimated contribution to load */


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev