[SSI] openssi/kernel/include/cluster/ssi/mosixll mosixtask.h, 1.11, 1.12
Roger Tsang <[email protected]> Tue, 09 Nov 2010 02:46:05 +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-serv12803/include/cluster/ssi/mosixll
Modified Files:
Tag: OPENSSI-FC
mosixtask.h
Log Message:
MOSIX:
- Move last_consider, last_mconsider, pages_i_bring, and load fields in mosix_task structure to memory descriptor since these fields apply to the thread group, not individual threads. Reduce duplication in process descriptor for threads. Reduce related overhead maintaining these fields.
- Remove volatile keyword in dflags and stay fields in mosix_task structure. No reason for volatile.
- When traversing tasklist use get_task_mm(). Skip PF_BORROWED_MM.
- mosix_mem_daemon: remove neutralize_my_load() call. In OpenSSI it not needed for kernel threads.
cluster/ssi/mosixll/balance.c | 72 ++++++++++++++----------
cluster/ssi/mosixll/freemem.c | 18 +++---
cluster/ssi/mosixll/info.c | 17 +----
cluster/ssi/mosixll/kernel.c | 14 +---
cluster/ssi/mosixll/load.c | 57 ++++++++-----------
include/cluster/ssi/mosixll/mosixtask.h | 17 +----
Index: mosixtask.h
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/include/cluster/ssi/mosixll/mosixtask.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mosixtask.h 9 Nov 2010 02:31:01 -0000 1.11
+++ mosixtask.h 9 Nov 2010 02:46:03 -0000 1.12
@@ -42,21 +42,10 @@
#ifdef CONFIG_SSI
struct mosix_task
{
- volatile uint32_t dflags; /* distributed (MOSIX) flags */
-#if defined(CONFIG_MOSIX_DIAG) && defined(CONFIG_SMP)
- int lock_depth; /* of the mosix_flag */
-#endif
- volatile uint32_t stay; /* reasons why process must stay */
- 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
- unsigned long ran; /* clock_t CPU used since last snap */
+ uint32_t dflags; /* distributed (MOSIX) flags */
+ uint32_t stay; /* reasons why process must stay */
+ unsigned long ran; /* clock_t CPU used since last snap */
unsigned long runstart; /* SSI_XXX: cputime_t */
- unsigned long load; /* estimated contribution to load */
};
#else /* !CONFIG_SSI */
struct mosix_task
------------------------------------------------------------------------------
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