Re: [patch] - random(6)
Bummer... here is the patch: http://setuid.promisc.org/random_faster.tar.gz att, victor loureiro lima 2007/1/9, Victor Loureiro Lima <[EMAIL PROTECTED]>: Probly got stripped of the email somehow, somewhere ;) The patch is attached above... att, victor loureiro lima 2007/1/9, Lucas Holt <[EMAIL PROTECTED]>: > Your patch appeared to get stripped from the mailing list. I would > like to try your patch in MidnightBSD which is based on FreeBSD 6 if > you'd be willing to email it to me. :) > > Luke > > > On Jan 8, 2007, at 2:52 PM, Victor Loureiro Lima wrote: > > > I am forwarding this to -hackers, since I havent got any response from > > the author ([EMAIL PROTECTED]) in months ;/ Maybe someone in here > > could take a few minutes and check this patch out and maybe commit it > > to the source tree > > > > att, > > victor loureiro lima > > > > -- Forwarded message -- > > From: Victor Loureiro Lima <[EMAIL PROTECTED]> > > Date: 27/11/2006 15:19 > > Subject: [patch] - random(6) > > To: [EMAIL PROTECTED] > > > > > > Hello Sean, > > > > My name is Victor, I've sent you a patch which solved the "bug" in > > which random(6) would > > be way to slow to handle files that are greater than 10MB+, well, I am > > re-sending you that > > same patch with little modifications, do you think you could include > > it in the src tree? > > This patch also increases random(6) performance dramatically even > > when working with small-to-medium file sizes, it should be a good > > addition to the random(6) source tree, and > > its also been extensivelly tested against all features of random(6) > > and it scale really well with big files, for example: > > > > -- > > [EMAIL PROTECTED] yes | head -20 > test > > [EMAIL PROTECTED] time ./random -f test > /dev/null > > 0.257u 0.015s 0:00.27 96.2% 11+14460k 0+0io 0pf+0w > > [EMAIL PROTECTED] time random -f test > /dev/null > > 187.366u 0.007s 3:07.39 99.9% 10+12945k 0+0io 0pf+0w > > -- > > > > And this was on a Intel Core Duo 2 1.8ghz with 1GB of RAM, with one > > process taking > > less than a second to randomize it all, and the other taking 3 > > minutes, I think its a good > > patch to be applied on the source tree. > > I also took the time to change the man page of random(6) to better > > describe the changes, > > basically removed the BUGS sections (since that bug is solved by the > > patch) and included a new line on the HISTORY section describing my > > contribution to the program :). > > > > Attached are the patches for randomize_fd.c and random.6, also a > > little description of the changes made in randomize_fd.c is in the > > readme file. > > Hope you find that this is patch is commitable, I would appreciate to > > have contributed to FreeBSD even if its just this little contribution > > :) > > > > ciao, > > victor loureiro lima > > ___ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers- > > [EMAIL PROTECTED]" > > > Lucas Holt > [EMAIL PROTECTED] > > FoolishGames.com (Jewel Fan Site) > JustJournal.com (Free blogging) > FoolishGames.net (Enemy Territory site) > > > ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [patch] - random(6)
Probly got stripped of the email somehow, somewhere ;) The patch is attached above... att, victor loureiro lima 2007/1/9, Lucas Holt <[EMAIL PROTECTED]>: Your patch appeared to get stripped from the mailing list. I would like to try your patch in MidnightBSD which is based on FreeBSD 6 if you'd be willing to email it to me. :) Luke On Jan 8, 2007, at 2:52 PM, Victor Loureiro Lima wrote: > I am forwarding this to -hackers, since I havent got any response from > the author ([EMAIL PROTECTED]) in months ;/ Maybe someone in here > could take a few minutes and check this patch out and maybe commit it > to the source tree > > att, > victor loureiro lima > > -- Forwarded message -- > From: Victor Loureiro Lima <[EMAIL PROTECTED]> > Date: 27/11/2006 15:19 > Subject: [patch] - random(6) > To: [EMAIL PROTECTED] > > > Hello Sean, > > My name is Victor, I've sent you a patch which solved the "bug" in > which random(6) would > be way to slow to handle files that are greater than 10MB+, well, I am > re-sending you that > same patch with little modifications, do you think you could include > it in the src tree? > This patch also increases random(6) performance dramatically even > when working with small-to-medium file sizes, it should be a good > addition to the random(6) source tree, and > its also been extensivelly tested against all features of random(6) > and it scale really well with big files, for example: > > -- > [EMAIL PROTECTED] yes | head -20 > test > [EMAIL PROTECTED] time ./random -f test > /dev/null > 0.257u 0.015s 0:00.27 96.2% 11+14460k 0+0io 0pf+0w > [EMAIL PROTECTED] time random -f test > /dev/null > 187.366u 0.007s 3:07.39 99.9% 10+12945k 0+0io 0pf+0w > -- > > And this was on a Intel Core Duo 2 1.8ghz with 1GB of RAM, with one > process taking > less than a second to randomize it all, and the other taking 3 > minutes, I think its a good > patch to be applied on the source tree. > I also took the time to change the man page of random(6) to better > describe the changes, > basically removed the BUGS sections (since that bug is solved by the > patch) and included a new line on the HISTORY section describing my > contribution to the program :). > > Attached are the patches for randomize_fd.c and random.6, also a > little description of the changes made in randomize_fd.c is in the > readme file. > Hope you find that this is patch is commitable, I would appreciate to > have contributed to FreeBSD even if its just this little contribution > :) > > ciao, > victor loureiro lima > ___ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > [EMAIL PROTECTED]" Lucas Holt [EMAIL PROTECTED] FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging) FoolishGames.net (Enemy Territory site) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Fwd: [patch] - random(6)
I am forwarding this to -hackers, since I havent got any response from the author ([EMAIL PROTECTED]) in months ;/ Maybe someone in here could take a few minutes and check this patch out and maybe commit it to the source tree att, victor loureiro lima -- Forwarded message -- From: Victor Loureiro Lima <[EMAIL PROTECTED]> Date: 27/11/2006 15:19 Subject: [patch] - random(6) To: [EMAIL PROTECTED] Hello Sean, My name is Victor, I've sent you a patch which solved the "bug" in which random(6) would be way to slow to handle files that are greater than 10MB+, well, I am re-sending you that same patch with little modifications, do you think you could include it in the src tree? This patch also increases random(6) performance dramatically even when working with small-to-medium file sizes, it should be a good addition to the random(6) source tree, and its also been extensivelly tested against all features of random(6) and it scale really well with big files, for example: -- [EMAIL PROTECTED] yes | head -20 > test [EMAIL PROTECTED] time ./random -f test > /dev/null 0.257u 0.015s 0:00.27 96.2% 11+14460k 0+0io 0pf+0w [EMAIL PROTECTED] time random -f test > /dev/null 187.366u 0.007s 3:07.39 99.9% 10+12945k 0+0io 0pf+0w -- And this was on a Intel Core Duo 2 1.8ghz with 1GB of RAM, with one process taking less than a second to randomize it all, and the other taking 3 minutes, I think its a good patch to be applied on the source tree. I also took the time to change the man page of random(6) to better describe the changes, basically removed the BUGS sections (since that bug is solved by the patch) and included a new line on the HISTORY section describing my contribution to the program :). Attached are the patches for randomize_fd.c and random.6, also a little description of the changes made in randomize_fd.c is in the readme file. Hope you find that this is patch is commitable, I would appreciate to have contributed to FreeBSD even if its just this little contribution :) ciao, victor loureiro lima ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
random (6)
I have a small patch that adds an option (-s) to the random command. It prints one random line out of every _denominator_ lines to stdout. For example, if you feed it an ls of /bin (32 files) to stdin, with "random -s 4" you will get series of 8 (=32/4) random filenames from /bin. dalroi * cd /bin dalroi * ls|random -s 4 chio dd domainname hostname mv red rmail test If anybody is interested I'll send it, according to the guidelines (But then I'll have to read up a bit on them first, this is my first FreeBSD patch). -- Alban Hertroys http://wit401310.student.utwente.nl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Install a BSD and become religious. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message