Re: migshm patch

Tony Travis <[email protected]>
Newsgroups gmane.linux.cluster.openmosix.general
Message-ID <[email protected]>
Jason Coutu wrote:
> It should work with java threads if you use the threads that map to system
> threads. If you use the internal java threads, there is one one process, and
> thus no migration.

Hello, Jason.

If you use 'green' threads, they are all within one process and the 
process *does* migrate. If you use 'posix' threads, which are 
implimented as separate processes under Linux, the threads communicate 
using shared memory and so not migrate.

I've migrated Java processes successfully using the Blackdown 1.3.1 JRE:

	http://www.blackdown.org

You need to set the bash environment up like this:

	export JAVA=/usr/local/j2sdk1.3.1

	if ! echo ${PATH} | grep -q $JAVA/bin ; then
	        PATH=$JAVA/bin:${PATH}
	fi
	export JAVA_COMPILER=NONE
	export THREADS_FLAG=green
	export THREADS_TYPE=green_threads

Unfortunately, you cannot run Java 'green' threads on separate CPU's 
under openMosix but you can migrate single-threaded Java applications or 
migrate all the threads of a multi-threaded application to another CPU.

Best wishes,

	Tony.
-- 
Dr. A.J.Travis,                     |  mailto:[email protected]
Rowett Research Institute,          |    http://www.rri.sari.ac.uk/~ajt
Greenburn Road, Bucksburn,          |   phone:+44 (0)1224 712751
Aberdeen AB21 9SB, Scotland, UK.    |     fax:+44 (0)1224 716687


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.