<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I've added ability to optionally change the packet size with the
help of an environment variable, the executable is always the same.<br>
(The technical details comes after the stat.)<br>
<br>
Unfortunately, my application is quite complex, multi-threaded,
contains many layers (video4linux, DSP h264 encoder, ...) and at the
moment I cannot refine the statistics results by leaving only Live
part of application. But the results show big user space numbers
(regarding to the system time) for the default maxPacketSize value.<br>
<br>
Here are results (using time utility from BusyBox; tries are
separated by slash in each row):<br>
<br>
Default (1456, see MultiFramedRTPSink ctor):<br>
<br>
User time (seconds):<br>
43.08 / 46.08 / 33.89 / 46.28 / 53.94<br>
System time (seconds):<br>
47.82 / 28.30 / 43.79 / 24.22 / 23.69<br>
Percent of CPU this job got:<br>
71% / 58% / 61% / 55% / 61%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 7.84s / 2m 7.60s / 2m 6.85s / 2m 7.01s / 2m 6.30s<br>
<br>
PACKET_SIZE=2048:<br>
<br>
User time (seconds):<br>
29.05 / 18.41 / 47.89 / 11.57 / 17.63<br>
System time (seconds):<br>
37.08 / 47.18 / 24.31 / 55.67 / 36.48<br>
Percent of CPU this job got:<br>
52% / 51% / 56% / 52% / 42%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 7.13s / 2m 7.67s / 2m 7.23s / 2m 7.22s / 2m 6.94s<br>
<br>
PACKET_SIZE=4096:<br>
<br>
User time (seconds):<br>
25.21 / 18.73 / 23.99 / 6.71 / 21.29<br>
System time (seconds):<br>
32.76 / 20.99 / 26.58 / 37.43 / 23.52<br>
Percent of CPU this job got:<br>
45% / 31% / 39% / 34% / 35%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 6.96s / 2m 7.34s / 2m 7.22s / 2m 6.54s / 2m 7.93s<br>
<br>
PACKET_SIZE=8192:<br>
<br>
User time (seconds):<br>
14.95 / 24.76 / 17.58 / 27.76 / 5.37<br>
System time (seconds):<br>
26.12 / 17.87 / 23.20 / 13.47 / 36.20<br>
Percent of CPU this job got:<br>
32% / 33% / 32% / 32% / 32%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 7.14s / 2m 6.98s / 2m 6.95s / 2m 6.70s / 2m 7.34s<br>
<br>
PACKET_SIZE=12288:<br>
<br>
User time (seconds):<br>
4.10 / 5.41 / 5.56 / 15.13 / 9.53<br>
System time (seconds):<br>
6.90 / 34.60 / 34.42 / 15.99 / 15.95<br>
Percent of CPU this job got:<br>
8% / 31% / 31% / 23% / 20%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 6.94s / 2m 7.21s / 2m 6.50s / 2m 9.88s / 2m 6.83s<br>
<br>
PACKET_SIZE=16384:<br>
<br>
User time (seconds):<br>
5.29 / 4.94 / 9.72 / 11.84 / 5.67<br>
System time (seconds):<br>
8.22 / 7.20 / 9.44 / 11.58 / 5.76<br>
Percent of CPU this job got:<br>
10% / 9% / 14% / 18% / 9%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 7.15s / 2m 7.14s / 2m 8.81s / 2m 6.59s / 2m 6.95s<br>
<br>
PACKET_SIZE=20480:<br>
<br>
User time (seconds):<br>
24.05 / 22.31 / 33.34<br>
System time (seconds):<br>
14.58 / 19.66 / 5.85<br>
Percent of CPU this job got:<br>
30% / 32% / 30%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 6.69s / 2m 10.02s / 2m 6.83s<br>
<br>
PACKET_SIZE=32768:<br>
<br>
User time (seconds):<br>
13.09 / 3.91 / 19.72 / 5.83 / 15.28<br>
System time (seconds):<br>
25.89 / 23.16 / 16.80 / 7.74 / 25.00<br>
Percent of CPU this job got:<br>
30% / 21% / 28% / 10% / 31%<br>
Elapsed (wall clock) time (h:mm:ss or m:ss):<br>
2m 7.51s / 2m 7.72s / 2m 6.64s / 2m 6.66s / 2m 6.64s<br>
<br>
Thech details:<br>
<br>
Stream: H264 25fps 1920x1080, ~2500000 bytes/sec<br>
<br>
root@target:~ uname -a<br>
Linux cvms-cam 2.6.32.24-davinci1-00205-gbc35ad4-dirty #3 PREEMPT
Tue Jun 23 10:31:35 CEST 2015 armv5tejl GNU/Linux<br>
<br>
root@target:~ cat /proc/cpuinfo <br>
Processor : ARM926EJ-S rev 5 (v5l)<br>
BogoMIPS : 215.44<br>
Features : swp half thumb fastmult edsp java <br>
CPU implementer : 0x41<br>
CPU architecture: 5TEJ<br>
CPU variant : 0x0<br>
CPU part : 0x926<br>
CPU revision : 5<br>
<br>
root@target:~ /usr/bin/time --help <br>
BusyBox v1.22.0 (2015-05-19 11:47:11 CEST) multi-call binary.<br>
<br>
Cross-compiler GCC on the host: arm-none-linux-gnueabi-gcc (Sourcery
G++ Lite 2009q3-67) 4.4.1<br>
<br>
Parameters of the compilation:<br>
arm-none-linux-gnueabi-g++ -c -Iinclude
-I../UsageEnvironment/include -I../groupsock/include -I. -Os
-DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
-DALLOW_RTSP_SERVER_PORT_REUSE -march=armv5te -mtune=arm926ej-s
-fdata-sections -ffunction-sections -fPIC -DPIC -Wall -DBSD=1
Media.cpp<br>
<br>
Best regards,<br>
Max<br>
<br>
<br>
<div class="moz-cite-prefix">On 07/23/2015 09:39 PM, Ross Finlayson
wrote:<br>
</div>
<blockquote
cite="mid:AF6AC2CB-F30E-49F9-85A5-109B966288B5@live555.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Increasing the maximum packet size (up to some value < 2^16
bytes) can be a good idea if you’re planning to stream only over a
LAN. If, however, you’re planning to stream beyond a single LAN,
then you should be aware that some routers (and/or firewalls) may
limit the size of network packets that they can forward. In that
case your (larger) packets might not get forwarded at all.
<div class=""><br class="">
</div>
<div class="">As you noted, increasing the packet size reduces the
number of network packet sends that get done, and thus improves
performance (though probably mostly due to to reduced OS
overhead, not reduced overhead in the LIVE555 code).</div>
<br class="">
<br class="">
<div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; "><span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; ">Ross Finlayson<br class="">
Live Networks, Inc.<br class="">
<a moz-do-not-send="true" href="http://www.live555.com/"
class="">http://www.live555.com/</a></span></span>
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
live-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a>
<a class="moz-txt-link-freetext" href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>