[httperf] Problem in acieving required rate using POST request

Raoufehsadat Hashemian raoofeh.h at gmail.com
Wed Aug 8 07:15:44 PDT 2012


Is it possible for you to send the httperf input/output and part of your
session file.

Cheers,
Raoufeh

On Wed, Aug 8, 2012 at 1:18 AM, Pankaj Rawat <pankaj.rawat at nechclst.in>wrote:

>  Hi Raoufehsadat,****
>
>             The request are not similar****
>
>             They are of form****
>
>             Uri – xml pair****
>
>             Where each request contain different uri and xml****
>
> Now by rate I mean 5 req/sec should be generated. So that in 60 seconds
> all my request will be send regardless of whether httpserver is able to
> process all those 5 request in 1 second, since this is what I have to
> measure****
>
> ** **
>
> ** **
>
> ** **
>
> Regards****
>
> Pankaj Rawat****
>
> ** **
>
> *From:* Raoufehsadat Hashemian [mailto:raoofeh.h at gmail.com]
> *Sent:* Wednesday, August 08, 2012 12:19 PM
>
> *To:* Pankaj Rawat
> *Cc:* httperf at linux.hpl.hp.com
> *Subject:* Re: [httperf] Problem in acieving required rate using POST
> request****
>
>  ** **
>
> Hi Pankaj,****
>
> ** **
>
> Imay be miss understood this part of your first message:****
>
> "I want to post data to a httpserver****
>
> Following is the scenario****
>
> Total requests:= 300****
>
> Total time            :=60 seconds****
>
> So rate=5 req/sec"****
>
> ** **
>
> You say you have 300 similar requests, right? if there is only one POST
> request, what does the rate mean here?****
>
> ** **
>
> The reason for the 129 second test can be high server response time. What
> was the server response time?****
>
> ** **
>
> Cheers,****
>
> Raoufeh****
>
> ** **
>
> On Tue, Aug 7, 2012 at 9:26 PM, Pankaj Rawat <pankaj.rawat at nechclst.in>
> wrote:****
>
> Thanks for the input.****
>
> But there is a problem****
>
>  httperf --server=192.168.0.100 --port=80 --wsesslog,300,0,sess.txt
> --rate=5****
>
>  ****
>
> The above will request the contents of sess.txt 300 times means the POST
> XML request will be send 300 times repetedly  which is not what I want ,**
> **
>
> I would like to keep it 1****
>
>  ****
>
> And I don’t have a problem if the request are in different session but the
> rate option didn’t seems to work, as I explained in my previous post.****
>
>  ****
>
>  httperf --server=192.168.0.100 --port=80 --wsesslog,1,0,sess.txt --rate=5\
> ****
>
>  ****
>
> I have 300 request.  In sess.txt file****
>
> Now I change rate to 5 , so that the requests would be processes in 60
> sec  (approx)****
>
> But overall time which I got is 129 sec, which is huge ****
>
>  ****
>
> Regards****
>
> Pankaj Rawat****
>
>  ****
>
> *From:* Raoufehsadat Hashemian [mailto:raoofeh.h at gmail.com]
> *Sent:* Tuesday, August 07, 2012 7:57 PM
> *To:* Pankaj Rawat
> *Cc:* httperf at linux.hpl.hp.com
> *Subject:* Re: [httperf] Problem in acieving required rate using POST
> request****
>
>  ****
>
> Hi Pankaj,
>
> Do you want to send the requests with the specified rate through the same
> TCP connection? In general, is this an important factor for you?
> if not, you need to add each request in a separate session (each empty
> line shows a new session)  and use wsesslog.
>
> for simplicity, i use the same GET requests you used. In the session file
> you have:****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
>  ****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
>  ****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
>  ****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
>  ****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
>  ****
>
>
> Assumming you have 5 similar sessions in you session file, your parameters
> will be:
>
>  httperf --server=192.168.0.100 --port=80 --wsesslog,300,0,sess.txt
> --rate=5
>
>
> and the result will be:
>
> Maximum connect burst length: 1
>
> Total: connections 300 requests 300 replies 300 test-duration 59.801 s
>
> Connection rate: 5.0 conn/s (199.3 ms/conn, <=1 concurrent connections)
> Connection time [ms]: min 0.4 avg 0.6 max 2.7 median 0.5 stddev 0.1
> Connection time [ms]: connect 0.2
> Connection length [replies/conn]: 1.000
>
> Request rate: 5.0 req/s (199.3 ms/req)
> Request size [B]: 131.0
>
> Reply rate [replies/s]: min 5.0 avg 5.0 max 5.0 stddev 0.0 (11 samples)
> Reply time [ms]: response 0.389 transfer 0.000
> Reply size [B]: header 163.0 content 50.0 footer 0.0 (total 213.0)
> Reply status: 1xx=0 2xx=300 3xx=0 4xx=0 5xx=0
>
> CPU time [s]: user 57.40 system 2.40 (user 96.0% system 4.0% total 100.0%)
> Net I/O: 1.7 KB/s (0.0*10^6 bps)
>
> Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
> Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
>
> Session rate [sess/s]: min 5.00 avg 5.02 max 5.00 stddev 0.00 (300/300)
> Session: avg 1.00 connections/session
> Session lifetime [s]: 0.0
> Session failtime [s]: 0.0
> Session length histogram: 0 300
>
>
>
>
> I hope I could explain it clearly.
>
> Regards,
> Raoufeh****
>
> On Mon, Aug 6, 2012 at 4:37 AM, Pankaj Rawat <pankaj.rawat at nechclst.in>
> wrote:****
>
> Hi all****
>
> I want to post data to a httpserver****
>
> Following is the scenario****
>
> Total requests:= 300****
>
> Total time            :=60 seconds****
>
> So rate=5 req/sec****
>
>  ****
>
> Now here is the tricky part All request are post request, which post some
> request xml****
>
>  ****
>
> I tried many option in httperf , none works****
>
>  ****
>
> I also tried wsesslog, with input file containg all the uri , in session
> way , or in burst way ****
>
> Eg: suppose a session get request (FOR simplicity)****
>
>  ****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> .****
>
> .****
>
> .****
>
>  ****
>
>  ****
>
>  ****
>
> Or in burst way****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> /dfvkv-10-17/hostedzone/ method=GET****
>
> .****
>
> .****
>
> .****
>
> None works , I also tried think time. Same ****
>
> None returns the output in specific period of time in burst way output is
> received too fast( 7-8 seconds instead of 60 seconds) and when doing in
> session way (120+ seconds)****
>
>  ****
>
> Can any one tell me a way how can I achieve this behavior using httperf.**
> **
>
>  ****
>
>  ****
>
> Regards****
>
> Pankaj Rawat****
>
>  ****
>
> DISCLAIMER:****
>
>  ****
>
> -----------------------------------------------------------------------------------------------------------------------****
>
>  ****
>
> The contents of this e-mail and any attachment(s) are confidential and****
>
> intended****
>
>  ****
>
> for the named recipient(s) only. ****
>
>  ****
>
> It shall not attach any liability on the originator or NECHCL or its****
>
>  ****
>
> affiliates. Any views or opinions presented in ****
>
>  ****
>
> this email are solely those of the author and may not necessarily reflect the****
>
>  ****
>
> opinions of NECHCL or its affiliates. ****
>
>  ****
>
> Any form of reproduction, dissemination, copying, disclosure, modification,****
>
>  ****
>
> distribution and / or publication of ****
>
>  ****
>
> this message without the prior written consent of the author of this e-mail is****
>
>  ****
>
> strictly prohibited. If you have ****
>
>  ****
>
> received this email in error please delete it and notify the sender****
>
>  ****
>
> immediately. .****
>
>  ****
>
> -----------------------------------------------------------------------------------------------------------------------****
>
>
> _______________________________________________
> httperf mailing list
> httperf at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/httperf/****
>
>
>
>
> --
> Raoufehsadat Hashemian****
>
> DISCLAIMER:****
>
> ** **
>
> -----------------------------------------------------------------------------------------------------------------------****
>
> ** **
>
> The contents of this e-mail and any attachment(s) are confidential and****
>
> intended****
>
> ** **
>
> for the named recipient(s) only. ****
>
> ** **
>
> It shall not attach any liability on the originator or NECHCL or its****
>
> ** **
>
> affiliates. Any views or opinions presented in ****
>
> ** **
>
> this email are solely those of the author and may not necessarily reflect the****
>
> ** **
>
> opinions of NECHCL or its affiliates. ****
>
> ** **
>
> Any form of reproduction, dissemination, copying, disclosure, modification,****
>
> ** **
>
> distribution and / or publication of ****
>
> ** **
>
> this message without the prior written consent of the author of this e-mail is****
>
> ** **
>
> strictly prohibited. If you have ****
>
> ** **
>
> received this email in error please delete it and notify the sender****
>
> ** **
>
> immediately. .****
>
> ** **
>
> -----------------------------------------------------------------------------------------------------------------------****
>
>
>
> ****
>
> ** **
>
> --
> Raoufehsadat Hashemian****
>
> DISCLAIMER:
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended
>
> for the named recipient(s) only.
>
> It shall not attach any liability on the originator or NECHCL or its
>
> affiliates. Any views or opinions presented in
>
> this email are solely those of the author and may not necessarily reflect the
>
> opinions of NECHCL or its affiliates.
>
> Any form of reproduction, dissemination, copying, disclosure, modification,
>
> distribution and / or publication of
>
> this message without the prior written consent of the author of this e-mail is
>
> strictly prohibited. If you have
>
> received this email in error please delete it and notify the sender
>
> immediately. .
>
> -----------------------------------------------------------------------------------------------------------------------
>
>


-- 
Raoufehsadat Hashemian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20120808/9eca1b86/attachment-0001.htm


More information about the httperf mailing list