9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: arisawa@ar.aichi-u.ac.jp
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] run and mount
Date: Tue,  2 Aug 2005 03:29:57 +0900	[thread overview]
Message-ID: <4345520b4d36884e162c8862b90fc2f9@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <90a144662276bb4fdcc4312728a1d643@orthanc.cc.titech.ac.jp>


> As a matter of fact, I'm going to ask 9fans to volunteer
> cpu seconds to compute 25 queen problem using this. :)

You can estimate for computing power to do this.

The task to get solution of N-queens problem can be divided
into small independent pieces of tasks.
We can get Open-MP style program qn24b-version1/omp
from http://www.yuba.is.uec.ac.jp/~kis/nq/index.htm

I transformed this program so that we can execute such like
         queen n i:j
this means n-queens problem of task(piece) range i to j
(You can get this program in co.aichi-u.ac.jp using cpu command
and look /usr/arisawa/src/taskfs/Q/src/)

I measured the time
	time queen n 0:1
0:1 means the first one piece.

The result measured on 2.4GHz Xeon
         n       time    # of pieces
         21      5s       41176
         22      33s     49480
         23      238s    64072
         24      1751s   75516
         25      13590s  95472
note that the time required to compute one piece increases rapidly

-bash$ python
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> 13590*95472
1297464480
 >>> 1297464480/(60*60*24*365)
41
 >>>

41 years on single computer!
500 volunteers who can offer one month?
I want rather 2000 9grid computers...

Kenji Arisawa



  parent reply	other threads:[~2005-08-01 18:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 12:30 YAMANASHI Takeshi
2005-08-01 13:51 ` Sergey Reva
2005-08-01 18:29 ` arisawa [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-02  0:46 YAMANASHI Takeshi
2005-08-02  1:37 ` arisawa
2005-08-02  4:00   ` Ronald G. Minnich
2005-08-02  5:41     ` arisawa
2005-08-02 14:07       ` Ronald G. Minnich
2005-08-04 11:59         ` arisawa
2005-07-30 15:27 Sergey Reva
2005-07-31  1:28 ` arisawa
2005-08-01 16:51 ` Sergey Reva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4345520b4d36884e162c8862b90fc2f9@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).