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
Message from discussion 80k writes/s via php cli

Received: by 10.14.199.133 with SMTP id x5mr573497een.7.1331902126506;
        Fri, 16 Mar 2012 05:48:46 -0700 (PDT)
X-BeenThere: nosql-databases@googlegroups.com
Received: by 10.213.109.213 with SMTP id k21ls1524395ebp.3.gmail; Fri, 16 Mar
 2012 05:48:46 -0700 (PDT)
Received: by 10.213.105.210 with SMTP id u18mr188148ebo.19.1331902126175;
        Fri, 16 Mar 2012 05:48:46 -0700 (PDT)
Received: by 10.213.105.210 with SMTP id u18mr188147ebo.19.1331902126137;
        Fri, 16 Mar 2012 05:48:46 -0700 (PDT)
Return-Path: <the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com>
Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177])
        by gmr-mx.google.com with ESMTPS id s9si3557521eei.3.2012.03.16.05.48.46
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 16 Mar 2012 05:48:46 -0700 (PDT)
Received-SPF: pass (google.com: domain of the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com designates 209.85.215.177 as permitted sender) client-ip=209.85.215.177;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com designates 209.85.215.177 as permitted sender) smtp.mail=the.mindstorm.mailinglist+caf_=nosql-databases=googlegroups....@gmail.com; dkim=pass header.i=@googlegroups.com
Received: by mail-ey0-f177.google.com with SMTP id k13so2334477eaa.36
        for <nosql-databases@googlegroups.com>; Fri, 16 Mar 2012 05:48:46 -0700 (PDT)
Received: by 10.213.35.196 with SMTP id q4mr159007ebd.29.1331902125883;
        Fri, 16 Mar 2012 05:48:45 -0700 (PDT)
X-Forwarded-To: nosql-databases@googlegroups.com
X-Forwarded-For: the.mindstorm.mailingl...@gmail.com nosql-databases@googlegroups.com
Delivered-To: the.mindstorm.mailingl...@gmail.com
Received: by 10.213.33.13 with SMTP id f13csp160166ebd;
        Fri, 16 Mar 2012 05:48:44 -0700 (PDT)
Return-Path: <mongodb-user+bncCLnj76pfEKPtjPsEGgSQkSK7@googlegroups.com>
Received-SPF: pass (google.com: domain of mongodb-user+bncCLnj76pfEKPtjPsEGgSQkSK7@googlegroups.com designates 10.68.233.33 as permitted sender) client-ip=10.68.233.33;
Received: from mr.google.com ([10.68.233.33])
        by 10.68.233.33 with SMTP id tt1mr4116179pbc.16.1331902123835 (num_hops = 1);
        Fri, 16 Mar 2012 05:48:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=beta;
        h=x-beenthere:received-spf:mime-version:x-proofpoint-virus-version
         :x-proofpoint-spam-details:references:in-reply-to:message-id:cc
         :x-mailer:from:subject:date:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive:sender
         :list-subscribe:list-unsubscribe:content-type;
        bh=UAErAzD4oVPOre62qEDJUvFzTEbJjs1t6BtJzpNVAvA=;
        b=ua+6iNGtHIQfyZ+wga8OByHS53d7ZpkbA684/DKuOprDCk09WEI9icZdDa0Vw2oAzT
         GHZSz/6l2fzftETMf7VcrU02+fFWqAonZ9+hb8jMuI4kevM00LSwYWIavS+kO4z3P05z
         sHhxF16QvHJyiuEpMHD+54Z4lmOa9721pkVbs=
Received: by 10.68.233.33 with SMTP id tt1mr1098768pbc.16.1331902115241;
        Fri, 16 Mar 2012 05:48:35 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.68.223.72 with SMTP id qs8ls11539263pbc.6.gmail; Fri, 16 Mar
 2012 05:48:34 -0700 (PDT)
Received: by 10.68.227.166 with SMTP id sb6mr5376749pbc.4.1331902114252;
        Fri, 16 Mar 2012 05:48:34 -0700 (PDT)
Received: by 10.68.227.166 with SMTP id sb6mr5376748pbc.4.1331902114233;
        Fri, 16 Mar 2012 05:48:34 -0700 (PDT)
Received: from st11p01mm-asmtpout001.mac.com (st11p01mm-asmtpout001.mac.com. [17.172.204.236])
        by gmr-mx.google.com with ESMTP id 6si5767893pbg.2.2012.03.16.05.48.34;
        Fri, 16 Mar 2012 05:48:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of tim.hawk...@mac.com designates 17.172.204.236 as permitted sender) client-ip=17.172.204.236;
MIME-version: 1.0
Received: from [10.0.1.11] (unknown [111.68.36.34])
 by st11p01mm-asmtp001.mac.com
 (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug
 10 2011)) with ESMTPSA id <0M0Z006RZA8U7...@st11p01mm-asmtp001.mac.com> for
 mongodb-user@googlegroups.com; Fri, 16 Mar 2012 12:48:33 +0000 (GMT)
X-Proofpoint-Virus-Version: vendor=fsecure
 engine=2.50.10432:5.6.7498,1.0.260,0.0.0000
 definitions=2012-03-16_05:2012-03-16,2012-03-15,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
 ipscore=0 suspectscore=2 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
 adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000
 definitions=main-1203160087
References: <12802862.551.1331874935151.JavaMail.geo-discussion-forums@ynbq18>
 <AA13299C-3CB6-46BA-80B6-4EEE569F1...@gmail.com>
 <1159704.28.1331901684645.JavaMail.geo-discussion-forums@yncd14>
In-reply-to: <1159704.28.1331901684645.JavaMail.geo-discussion-forums@yncd14>
Message-id: <D3E7F90C-AAE9-43C5-80EF-6377AC389...@mac.com>
Cc: "mongodb-user@googlegroups.com" <mongodb-user@googlegroups.com>
X-Mailer: iPad Mail (9B176)
From: Timothy Hawkins <tim.hawk...@mac.com>
Subject: Re: [mongodb-user] 80k writes/s via php cli
Date: Fri, 16 Mar 2012 20:48:29 +0800
To: "mongodb-user@googlegroups.com" <mongodb-user@googlegroups.com>
X-Original-Sender: tim.hawk...@mac.com
X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com:
 domain of tim.hawk...@mac.com designates 17.172.204.236 as permitted sender) smtp.mail=tim.hawk...@mac.com
Reply-To: mongodb-user@googlegroups.com
Precedence: list
Mailing-list: list mongodb-user@googlegroups.com; contact mongodb-user+owners@googlegroups.com
List-ID: <mongodb-user.googlegroups.com>
List-Post: <http://groups.google.com/group/mongodb-user/post?hl=en_US>, <mailto:mongodb-user@googlegroups.com>
List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:mongodb-user+help@googlegroups.com>
List-Archive: <http://groups.google.com/group/mongodb-user?hl=en_US>
Sender: mongodb-user@googlegroups.com
List-Subscribe: <http://groups.google.com/group/mongodb-user/subscribe?hl=en_US>,
 <mailto:mongodb-user+subscribe@googlegroups.com>
List-Unsubscribe: <http://groups.google.com/group/mongodb-user/subscribe?hl=en_US>,
 <mailto:googlegroups-manage+1044811755470+unsubscribe@googlegroups.com>
Content-type: multipart/alternative;
 boundary="Boundary_(ID_Lpw5xtWhzqdst4AomFmDzw)"

--Boundary_(ID_Lpw5xtWhzqdst4AomFmDzw)
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: quoted-printable

Also, have you checked out

http://php.net/manual/en/mongocollection.batchinsert.php

Sent from my iPad

On 16 Mar 2012, at 20:41, MKN Web Solutions <mich...@mknwebsolutions.com> w=
rote:

> That's what I figured.  Yea, I was running multiple php cli's with the sa=
me script.=20
>=20
> On Friday, March 16, 2012 6:50:42 AM UTC-4, SCO wrote:
> I'm not a mongo guru, but given your lock level around 80%, you still hav=
e room, enough to reach 100kins/s.
>=20
> Did you try paralellizing php cli scripts ?
>=20
>=20
>=20
> Le 16 mars 2012 =E0 06:15, MKN Web Solutions <mich...@mknwebsolutions.com=
> a =E9crit :
>=20
>> I'm able to achieve 80k writes per second via CLI php.  The script is ba=
sic, it simply injects a 10 char string into "x" (in this case it isn't ind=
exed, nor does it need to be since this is a write test only).
>>=20
>> The machine specs are amd phenom II x4 2.2ghz @ 64bit, 4GB ram, 250GB 72=
00 rpm hd, running ubuntu.
>>=20
>> CPU usage spiked around 50-70% usage by MongoDB and 20-30% by php cli.  =
Mongo running as a single instance, master set on, no repl set nor slaves.
>>=20
>> My question is, what's the next bottleneck.  The HD utilization was also=
 bouncing around 10-35%.  I want to get the max writes possible that the ma=
chine can produce. =20
>>=20
>>=20
>> Thanks for any tips / help.
>>=20
>>=20
>>=20
>>=20
>> --=20
>> You received this message because you are subscribed to the Google Group=
s "mongodb-user" group.
>> To view this discussion on the web visit https://groups.google.com/d/msg=
/mongodb-user/-/QTuYHv-zm3IJ.
>> To post to this group, send email to mongodb-user@googlegroups.com.
>> To unsubscribe from this group, send email to mongodb-user+unsubscribe@g=
ooglegroups.com.
>> For more options, visit this group at http://groups.google.com/group/mon=
godb-user?hl=3Den.
>=20
> --=20
> You received this message because you are subscribed to the Google Groups=
 "mongodb-user" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/=
mongodb-user/-/CHOl72aoJtQJ.
> To post to this group, send email to mongodb-user@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user+unsubscribe@go=
oglegroups.com.
> For more options, visit this group at http://groups.google.com/group/mong=
odb-user?hl=3Den.

--=20
You received this message because you are subscribed to the Google Groups "=
mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@goog=
legroups.com.
For more options, visit this group at http://groups.google.com/group/mongod=
b-user?hl=3Den.


--Boundary_(ID_Lpw5xtWhzqdst4AomFmDzw)
Content-type: text/html; charset=ISO-8859-1
Content-transfer-encoding: quoted-printable

<html><head></head><body bgcolor=3D"#FFFFFF"><div>Also, have you checked ou=
t</div><div><br></div><div><a href=3D"http://php.net/manual/en/mongocollect=
ion.batchinsert.php">http://php.net/manual/en/mongocollection.batchinsert.p=
hp</a><br><br>Sent from my iPad</div><div><br>On 16 Mar 2012, at 20:41, MKN=
 Web Solutions &lt;<a href=3D"mailto:mich...@mknwebsolutions.com">michael@m=
knwebsolutions.com</a>&gt; wrote:<br><br></div><div></div><blockquote type=
=3D"cite"><div>That's what I figured. &nbsp;Yea, I was running multiple php=
 cli's with the same script.&nbsp;<br><br>On Friday, March 16, 2012 6:50:42=
 AM UTC-4, SCO wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;m=
argin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div bgco=
lor=3D"#FFFFFF"><div>I'm not a mongo guru, but given your lock level around=
 80%, you still have room, enough to reach 100kins/s.</div><div><br></div><=
div>Did you try paralellizing php cli scripts ?</div><div><br><br></div><di=
v><br>Le 16 mars 2012 =E0 06:15, MKN Web Solutions &lt;<a href=3D"mailto:mi=
ch...@mknwebsolutions.com" target=3D"_blank">mich...@mknwebsolutions.com</a=
>&gt; a =E9crit&nbsp;:<br><br></div><div></div><blockquote type=3D"cite"><d=
iv>I'm able to achieve 80k writes per second via CLI php. &nbsp;The script =
is basic, it simply injects a 10 char string into "x" (in this case it isn'=
t indexed, nor does it need to be since this is a write test only).<div><br=
></div><div>The machine specs are amd phenom II x4 2.2ghz @ 64bit, 4GB ram,=
 250GB 7200 rpm hd, running ubuntu.</div><div><br></div><div>CPU usage spik=
ed around 50-70% usage by MongoDB and 20-30% by php cli. &nbsp;Mongo runnin=
g as a single instance, master set on, no repl set nor slaves.</div><div><b=
r></div><div>My question is, what's the next bottleneck. &nbsp;The HD utili=
zation was also bouncing around 10-35%. &nbsp;I want to get the max writes =
possible that the machine can produce. &nbsp;</div><div><br></div><div><br>=
</div><div>Thanks for any tips / help.</div><div><br></div><p style=3D"text=
-align:center;clear:both"><a href=3D"https://lh3.googleusercontent.com/-JKp=
03qVaVS4/T2LLsmoGwoI/AAAAAAAAAAM/9cgwA3Dsxy4/s1600/Screen+Shot+2012-03-15+a=
t+11.17.03+PM.png" style=3D"margin-left:1em;margin-right:1em" target=3D"_bl=
ank"><img border=3D"0" origsrc=3D"https://lh3.googleusercontent.com/-JKp03q=
VaVS4/T2LLsmoGwoI/AAAAAAAAAAM/9cgwA3Dsxy4/s1600/Screen+Shot+2012-03-15+at+1=
1.17.03+PM.png" src=3D"cid:"></a></p><div><br></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "=
mongodb-user" group.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msg/mongodb-user/-/QTuYHv-zm3IJ" target=3D"_blank"></a><a href=3D"http=
s://groups.google.com/d/msg/mongodb-user/-/QTuYHv-zm3IJ" target=3D"_blank">=
https://groups.google.com/d/<wbr>msg/mongodb-user/-/QTuYHv-<wbr>zm3IJ</a>.<=
br>=20
To post to this group, send email to <a href=3D"mailto:mongodb-user@googleg=
roups.com" target=3D"_blank">mongodb-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:mongodb-use=
r+unsubscribe@googlegroups.com" target=3D"_blank">mongodb-user+unsubscribe@=
<wbr>googlegroups.com</a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/mongodb-user?hl=3Den" target=3D"_blank">http://groups.google.com/<wbr>=
group/mongodb-user?hl=3Den</a>.<br>


</div></blockquote></div></blockquote>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "=
mongodb-user" group.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msg/mongodb-user/-/CHOl72aoJtQJ">https://groups.google.com/d/msg/mongo=
db-user/-/CHOl72aoJtQJ</a>.<br>=20
To post to this group, send email to <a href=3D"mailto:mongodb-user@googleg=
roups.com">mongodb-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:mongodb-use=
r+unsubscribe@googlegroups.com">mongodb-user+unsubscribe@googlegroups.com</=
a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/mongodb-user?hl=3Den">http://groups.google.com/group/mongodb-user?hl=
=3Den</a>.<br>


</div></blockquote></body></html>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "=
mongodb-user" group.<br />
To post to this group, send email to mongodb-user@googlegroups.com.<br />
To unsubscribe from this group, send email to mongodb-user+unsubscribe@goog=
legroups.com.<br />

For more options, visit this group at http://groups.google.com/group/mongod=
b-user?hl=3Den.<br />



--Boundary_(ID_Lpw5xtWhzqdst4AomFmDzw)--