summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/20110121/002299.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/20110121/002299.html')
-rw-r--r--zarb-ml/mageia-dev/20110121/002299.html98
1 files changed, 98 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/20110121/002299.html b/zarb-ml/mageia-dev/20110121/002299.html
new file mode 100644
index 000000000..ccc254305
--- /dev/null
+++ b/zarb-ml/mageia-dev/20110121/002299.html
@@ -0,0 +1,98 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] Packaging for Mageia
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Packaging%20for%20Mageia&In-Reply-To=%3C20110121174856.GF14883%40mongueurs.net%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="002298.html">
+ <LINK REL="Next" HREF="002297.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] Packaging for Mageia</H1>
+ <B>Jerome Quelin</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Packaging%20for%20Mageia&In-Reply-To=%3C20110121174856.GF14883%40mongueurs.net%3E"
+ TITLE="[Mageia-dev] Packaging for Mageia">jquelin at gmail.com
+ </A><BR>
+ <I>Fri Jan 21 18:48:56 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="002298.html">[Mageia-dev] Packaging for Mageia
+</A></li>
+ <LI>Next message: <A HREF="002297.html">[Mageia-dev] Packaging for Mageia
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2299">[ date ]</a>
+ <a href="thread.html#2299">[ thread ]</a>
+ <a href="subject.html#2299">[ subject ]</a>
+ <a href="author.html#2299">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On 11/01/21 18:17 +0100, Thierry Vignaud wrote:
+&gt;<i> On 21 January 2011 16:15, Jerome Quelin &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">jquelin at gmail.com</A>&gt; wrote:
+</I>&gt;<i> &gt; note to packagers: it's now very easy to throttle in an adaptive way
+</I>&gt;<i> &gt; (thanks to pascal terjean). just add the following before submitting a
+</I>&gt;<i> &gt; package:
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; &#160; &#160;sleep $( HEAD <A HREF="http://pkgsubmit.mageia.org/">http://pkgsubmit.mageia.org/</A> | perl -nE '/X-BS-Throttle: (\d+)/ &amp;&amp; print $1' )
+</I>&gt;<i>
+</I>&gt;<i> WOW!
+</I>&gt;<i>
+</I>&gt;<i> I'd use &quot;HEAD <A HREF="http://pkgsubmit.mageia.org/">http://pkgsubmit.mageia.org/</A> | fgrep X-BS-Throttle | cut
+</I>&gt;<i> -d: -f 2&quot; instead
+</I>&gt;<i> (less I/O thanks to not loading perl?)
+</I>
+since i'm not loading any modules, i'm not sure.
+
+demonstration:
+$ strace cut 2&gt;&amp;1 | grep open|wc -l
+11
+$ strace fgrep 2&gt;&amp;1 | grep open|wc -l
+12
+$ strace perl -e42 2&gt;&amp;1 | grep open|wc -l
+22
+
+so, your solution opens 1 more file, and forks 1 more process: i'd say perl wins.
+
+
+but for such small workloads, i'd say it's even. especially since it's dwarfed
+by the internet access! :-)
+
+(aren't we nerds discussing such topics?)
+
+
+&gt;<i> Too sad nobody did that back at mdv in the old days
+</I>&gt;<i> Hurra Pascal!
+</I>
+definitely. that's awesome: everybody is now treated the same way
+provided we follow this rule...
+
+
+j&#233;r&#244;me
+--
+<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">jquelin at gmail.com</A>
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="002298.html">[Mageia-dev] Packaging for Mageia
+</A></li>
+ <LI>Next message: <A HREF="002297.html">[Mageia-dev] Packaging for Mageia
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2299">[ date ]</a>
+ <a href="thread.html#2299">[ thread ]</a>
+ <a href="subject.html#2299">[ subject ]</a>
+ <a href="author.html#2299">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>