Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Call for testers: a tool to make use of multicore CPU easier
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cal22cal
n00b
n00b


Joined: 19 Jan 2006
Posts: 36

PostPosted: Sun Feb 21, 2010 2:31 am    Post subject: Reply with quote

ExZombie
Thx. for your info. and details. :wink:

stobbsm
md5deep will doing the md5 sum creation and checking as md5sum does
but it gives more options.
-r will do the md5 for sub-directories. So, we don't need the "find ... bla bla bla" in command line.
-X will cal the md5 for files without md5 entry according to the checksum file, somethings like that.
:wink:
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Sun Feb 21, 2010 9:06 am    Post subject: Reply with quote

stobbsm: Thanks, I checked OpenBSD's man pages, and fixed this. If the recursive make call is the only problem, I consider OpenBSD supported. I'll check back when the 0.4 ebuild gets into sunrise.
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Sun Feb 21, 2010 9:39 pm    Post subject: Reply with quote

can I have the patch to fix it in openbsd, just to ensure that it works correctly?
Better safe then sorry!
_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Mon Feb 22, 2010 8:21 am    Post subject: Reply with quote

Sure, just do 'git pull' in the prll directory.
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Mon Feb 22, 2010 6:03 pm    Post subject: Reply with quote

make clean is not having the same problem in OpenBSD.

Here's a patch for you:
Code:

--- Makefile    Mon Feb 22 03:57:08 2010
+++ Makefile.new        Mon Feb 22 03:56:55 2010
@@ -7,7 +7,7 @@

 clean:
        rm -f sanitycheck check_key_size prll_jobserver
-       $(MAKE) -C tests clean
+       cd tests && $(MAKE) clean

 sanitycheck: check_key_size
        ./check_key_size && touch sanitycheck || (rm -f sanitycheck && false)

_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Tue Feb 23, 2010 10:45 am    Post subject: Reply with quote

Version 0.4 is in sunrise. Thanks for help, everyone! All contributions are duly noted in the docs.

stobbsm: yeah, I forgot about the clean target, so this fix is not in 0.4, but it's not a showstopper.
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Sun Apr 18, 2010 8:41 pm    Post subject: Reply with quote

Hello again!

I'm preparing to release version 0.5 of prll. The biggest news are full output buffering with synchronisation (solving a number of issues with output) and ability to interrupt prll from within a function (making possible e.g. ad-hoc parallel search which aborts on success).

As is usual, I'd like to hear of any problems running prll. You are welcome to clone the git repo, or you may use this ebuild. Anyone who can test prll on any kind of Unix, please do :) . If you have ideas on how to improve prll further, I'll be glad to read your comments.

I also have a more specific question: is the README clear enough? Does it provide enough documentation?

Thanks!
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 264

PostPosted: Mon Apr 19, 2010 12:26 am    Post subject: Reply with quote

I'm ussing prll and think that the documentations is fine BUT is dificult to acces to them. I mind, you need to download and open de readme because some things aren't on the web documentation.

The rest is fine. Good job and thaks for the hard work.
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Thu Apr 22, 2010 6:54 am    Post subject: Reply with quote

cruzki123 wrote:
I'm ussing prll and think that the documentations is fine BUT is dificult to acces to them. I mind, you need to download and open de readme because some things aren't on the web documentation.

The rest is fine. Good job and thaks for the hard work.


Sorry for taking this long to respond.
It is a good idea to link directly to the current version of the README from the web page, I will do it. However, I'm not sure I understood you correctly. If you installed prll from portage, the readme gets installed into /usr/share/doc, as with every other package. There is no need to go look for it on the web.

I did think about writing a man page, but roff is a bit... well... rough :? .
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 499

PostPosted: Thu Apr 22, 2010 9:05 am    Post subject: Reply with quote

ExZombie thanks for the new command.

What is the difference between using the command and make -j n?

An example of Makefile to convert .vob files to .avi files.
Code:

.SUFFIXES: .vob .avi .log

files=  $(shell ls *.vob)

all: ${files:.vob=.avi}

.vob.log:
        mencoder $*.vob -quiet -passlogfile $*.log -ovc xvid -xvidencopts pass=1 -oac copy -o /dev/null

.log.avi:
        mencoder $*.vob -quiet -passlogfile $*.log -ovc xvid -xvidencopts pass=2:bitrate=1200  -oac copy -o $*.avi


Then you run
Code:

# make -j 5


And you get all the make features for free.
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Thu Apr 22, 2010 12:51 pm    Post subject: Reply with quote

With prll, you don't need to go through the hassle of writing and moving around a makefile. Simplification at it's finest here.
_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Tue Apr 27, 2010 12:09 pm    Post subject: Reply with quote

Alright, version 0.5 is out. The ebuild for the impatient is here, although I'm sure the maintainer will catch up soon.
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Tue Apr 27, 2010 8:13 pm    Post subject: Reply with quote

I know it's not the best spot for it, but I've recently started administrating a lot of remote systems, consisting of Ubuntu Server/Desktop.
I've created a .deb for Ubuntu of prll-0.5
May expand the user-base if you have a package for people to try.

Would you like it uploaded so you can link on your homepage?
_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2266
Location: $TERM

PostPosted: Thu Apr 29, 2010 3:36 am    Post subject: Reply with quote

hummm....very very interesting...
_________________
My blog
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Thu Apr 29, 2010 10:05 am    Post subject: Reply with quote

stobbsm: Sure, I'd love that. If you want to be credited by name instead of your nickname, send me a PM with your name and email address.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2266
Location: $TERM

PostPosted: Thu Apr 29, 2010 11:19 am    Post subject: Reply with quote

But how do you use it man?? :(

Code:
bash-4.0$ pwd
/usr/bin
bash-4.0$ ls|grep prll
prll_jobserver

_________________
My blog
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Thu Apr 29, 2010 2:35 pm    Post subject: Reply with quote

Well, if you're in a login shell, type 'prll' and it will give you short usage info. Further information is in /usr/share/doc/prll-VERSION/README.bz2. It includes several examples. However, I recommend that you get the latest version which is not yet in portage, since I have put a lot of effort into making the README clearer.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2266
Location: $TERM

PostPosted: Mon May 03, 2010 2:20 am    Post subject: Reply with quote

What if I'm not in the login shell?
_________________
My blog
Back to top
View user's profile Send private message
stobbsm
Guru
Guru


Joined: 23 May 2004
Posts: 452

PostPosted: Mon May 03, 2010 3:13 am    Post subject: Reply with quote

As long as your in an interactive shell (xterm or the like) you can source prll.sh and get it working.

I can't remember where it get's installed in the ebuild, but just run the command
Code:
source /path/to/prll.sh

Then your good to go!

To run a command with it, use
Code:
prll -s 'command "$1"' <argument list>


Example: unarchive all tarballs in a given directory
Code:
prll -s 'tar -axvf "$1"' /path/to/tarballs/*

_________________
Sysadmin of Ubuntu systems and servers....
Although my own server is gentoo....
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Thu May 05, 2011 7:49 am    Post subject: Reply with quote

Hello!

It's been a long time, but I'm finally getting to releasing version 0.6 :D . It took a while not just because of lack of time, but mostly because I was hunting an elusive race condition which was not my fault at all.

Here's the changelog:

  • POSIX compatibility, tested with dash and FreeBSD sh.
  • Quiet mode to suppress progress messages.
  • bash no longer barfs the whole prll source code when suspending
    and resuming operation.
  • Proper option parsing is used, so order of options is no longer
    important. Exceptions were added for the '-p' and '-0' options
    to maintain backwards compatibility.
  • Improved performance when reading from pipe, although it is
    still recommended to put large amounts of data in files.
  • Better error reporting from helper programs.
  • Better handling of the INT signal.
  • More reliable cleanup.


Again, I invite you to test prll on as many platforms as possible. For gentoo, here is a live ebuild. For the rest, here is the git repo. Apart from running "make test", I would be grateful if you tested it in exceptional circumstances, i.e. what happens when you terminate it or suspend and resume it, whether jobs complete correctly and whether ipcs are cleaned up properly.

Thanks!
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Sun May 08, 2011 5:53 am    Post subject: Reply with quote

Here's a new version of the live ebuild. There have been slight changes to the build system and most importantly, I wrote a man page :D . It took me a while to find a reasonable tool to make it :wink: .
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Wed May 18, 2011 3:44 pm    Post subject: Reply with quote

Version 0.6 is out, and here's an ebuild.
Back to top
View user's profile Send private message
npaust
n00b
n00b


Joined: 23 Apr 2004
Posts: 70
Location: Walla Walla, WA

PostPosted: Mon Oct 03, 2011 6:43 pm    Post subject: Reply with quote

So, prll looks like EXACTLY what I'm looking for. I have a workflow though that doesn't involve changing a bunch of files in one directory. Instead, I want to have a long shell script listing (potentially hundreds of) jobs and have prll just dole them out to the processors. Is there some simple way to make it read the individual jobs from a file rather than using wildcards on the command line?
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 170

PostPosted: Tue Oct 04, 2011 6:36 am    Post subject: Reply with quote

Sure, use the '-p' or '-0' option and pipe the file to prll's standard input. From the manpage:
Code:
cat file_with_arguments | prll myfunction -p > results
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Oct 23, 2011 8:00 am    Post subject: Reply with quote

Moved from Unsupported Software to Other Things Gentoo.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum