Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
should mk run targets in parallel on Windows?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason Catena  
View profile  
 More options Feb 16 2011, 6:24 pm
From: Jason Catena <jason.cat...@gmail.com>
Date: Wed, 16 Feb 2011 15:24:30 -0800 (PST)
Local: Wed, Feb 16 2011 6:24 pm
Subject: should mk run targets in parallel on Windows?
mk in acme-0.13 (latest delivery for Windows) apparently runs all jobs
in serial by default.  In mk.b, sflag defaults to 1, which means
serial as I read the code.  The -s option reassigns 1 to sflag.  So
there's no way with the delivered code to run targets in parallel.

To exercise the parallel code, I changed sflag to default to 0, and
recompiled as a new file pmk.dis, but this also dispatches and
completes all jobs in the same order, and waits till one finishes
before starting the next one.

To test this I gave mk 10 shell scripts (0 to 9) to run at once, each
of which sleep for 10-n seconds (so script 0 sleeps for 10 seconds).
If they were executed in parallel, I would expect to all 10 started
before 0 finishes, and finish in roughly reverse order.

Is this a known issue with mk in acme-sac, or an unavoid(able|ed)
problem with the Windows port?  I don't see that the latest code
(which presumably runs in OSX and Linux too) of mk.b is any different
as regards sflag, and there's no issue apparently about this in the
tracker.

Thanks very much for maintaining all this in the first place,
Jason Catena


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Caerwyn Jones  
View profile  
 More options Feb 17 2011, 10:31 pm
From: Caerwyn Jones <caerw...@gmail.com>
Date: Thu, 17 Feb 2011 22:31:34 -0500
Local: Thurs, Feb 17 2011 10:31 pm
Subject: Re: [acme-sac] should mk run targets in parallel on Windows?
The ability to run jobs concurrently also depends on the value of $NPROC.
This is also default to 1 so setting sflag doesn't change the behavior.
It also looks like nproclimit is always set to 1 regardless of NPROC.

This maybe because the VM doesn't support multiple cores so setting
NPROC > 1 and getting true concurrency out of inferno mk isn't really
an option.

This question might also be asked on the inferno-os list since there is really
no difference between mk in acme-sac and inferno-os.

Caerwyn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »