[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] Memory mapping in Apache question [wd-vc]
From:       "Bremser, Kurt (AMOS Austria GmbH)" <Kurt.Bremser () allianz ! at>
Date:       2015-09-14 5:17:54
Message-ID: 02D980EB3A9003459E275CA771F3F4820141992B2679 () WMUCV561 ! wwg00m ! rootdom ! net
[Download RAW message or body]

On any serious operating system, accessing the same content will be memory-mapped \
after the first request, since from then on the file(s) in question will be cached. \
Reducing the complexity inside apache may even give a benefit.

Kurt Bremser
AMOS Austria

Newton was wrong. There is no gravity. The Earth sucks.
________________________________
Von: Rose, John B [jbrose@utk.edu]
Gesendet: Freitag, 11. September 2015 22:28
An: users@httpd.apache.org
Betreff: **SPAM?** [users@httpd] Memory mapping in Apache question [wd-vc]

Apache 2.2
Prefork
Red Hat 6

We did a small test with a single image to compare results of it as memory mapped \
content and not memory mapped. I expected the memory mapped image to be quicker to \
load. But in our testing that did not seem to be the case. Should accessing a memory \
mapped image be quicker than non-memory mapped?

I'm doing the below ab test to compare the performance, each 3 times:

ab -n 100000 -c 20 http://abc.com/


If we disable MMAP,

It takes 14.555 seconds, 12.775 seconds, 10.698 seconds.

Average: 12.675s.


If we enable MMAP,
It takes 18.468 seconds, 13.882 seconds, 16.532 seconds

Average: 16.294s.


Thanks

AMOS Austria GmbH 
1130 Wien, Hietzinger Kai 101-105 
FN 365014k, Handelsgericht Wien 
UID: ATU 66614737 

http://www.allianz.at 

******************************************************** 
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge 
enthalten Informationen, die vertraulich und 
ausschliesslich fuer den (die) bezeichneten Adressaten 
bestimmt sind. 
Wenn Sie nicht der genannte Adressat sind, darf dieses 
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen 
Personen zugaenglich gemacht noch in anderer Weise 
verwertet werden.
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten
wir Sie, dieses E-Mail und saemtliche angeschlossene
Anhaenge zu loeschen. 

Please note: This email and any files transmitted with it is 
intended only for the named recipients and may contain 
confidential and/or privileged information. If you are not the 
intended recipient, please do not read, copy, use or disclose 
the contents of this communication to others and notify the 
sender immediately. Then please delete the email and any 
copies of it. Thank you.
********************************************************


[Attachment #3 (text/html)]

<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 11.00.9600.17207">
<style title="owaParaStyle"><!--P {
	MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
--></style>
</head>
<body ocsi="x">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">On any serious operating \
system, accessing the same content will be memory-mapped after the first request, \
since from then on the file(s) in question will be cached.</font></div> <div \
dir="ltr"><font size="2" face="tahoma">Reducing the complexity inside apache may even \
give a benefit.</font></div> <div dir="ltr"><font size="2" \
face="tahoma"></font>&nbsp;</div> <div>
<div><font size="2" face="Tahoma">Kurt Bremser</font></div>
<div><font size="2" face="tahoma">AMOS Austria</font></div>
<div>&nbsp;</div>
<div>
<div><font size="2" face="Helv, sans-serif">Newton was wrong. There is no gravity. \
The Earth sucks.</font></div> </div>
</div>
<div id="divRpF753062" style="DIRECTION: ltr">
<hr tabindex="-1">
<font color="#000000" size="2" face="Tahoma"><b>Von:</b> Rose, John B \
[jbrose@utk.edu]<br> <b>Gesendet:</b> Freitag, 11. September 2015 22:28<br>
<b>An:</b> users@httpd.apache.org<br>
<b>Betreff:</b> **SPAM?** [users@httpd] Memory mapping in Apache question [wd-vc]<br>
</font><br>
</div>
<div></div>
<div>
<div>Apache 2.2</div>
<div>Prefork</div>
<div>Red Hat 6</div>
<div><br>
</div>
<div>We did a small test with a single image to compare results of it as memory \
mapped content and not memory mapped. I expected the memory mapped image to be \
quicker to load. But in our testing that did not seem to be the case. Should \
accessing a memory mapped  image be quicker than non-memory mapped?</div>
<div><br>
</div>
<div><span style="FONT-SIZE: 16px; FONT-FAMILY: Calibri,Arial,Helvetica,sans-serif; \
BACKGROUND-COLOR: rgb(255,255,255)">I'm doing the below&nbsp;ab test to compare the \
performance, each 3 times:</span></div> <div>
<p style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px"><span style="FONT-SIZE: 12pt">ab -n \
100000 -c 20&nbsp;http://abc.com/</span></p> <p style="MARGIN-BOTTOM: 0px; \
MARGIN-TOP: 0px"><br> </p>
<p style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">If we disable MMAP,</p>
<p style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px">It takes 14.555 seconds,&nbsp;12.775 \
seconds,&nbsp;10.698 seconds.</p> <p style="MARGIN-BOTTOM: 0px; MARGIN-TOP: \
0px">Average: 12.675s.</p> <p style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px"><br>
</p>
If we enable MMAP,
<div>
<div style="FONT-SIZE: 16px; FONT-FAMILY: Calibri,Arial,Helvetica,sans-serif; \
BACKGROUND-COLOR: rgb(255,255,255)"> <span style="FONT-SIZE: 12pt">It \
takes&nbsp;</span>18.468 seconds,&nbsp;13.882 seconds,&nbsp;16.532 seconds</div> <div \
style="FONT-SIZE: 16px; FONT-FAMILY: Calibri,Arial,Helvetica,sans-serif"> <p \
                style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px; BACKGROUND-COLOR: \
                rgb(255,255,255)">
Average: 16.294s.</p>
<div style="BACKGROUND-COLOR: rgb(255,255,255)"><br>
</div>
<div style="BACKGROUND-COLOR: rgb(255,255,255)"><br>
</div>
<div><span style="BACKGROUND-COLOR: rgb(255,254,254)">Thanks</span></div>
</div>
</div>
</div>
</div>
 <br>
AMOS Austria GmbH <br>
1130 Wien, Hietzinger Kai 101-105 <br>
FN 365014k, Handelsgericht Wien <br>
UID: ATU 66614737 <br>
<br>
http://www.allianz.at <br>
<br>
******************************************************** <br>
Dieses E-Mail und allfaellig daran angeschlossene Anhaenge <br>
enthalten Informationen, die vertraulich und <br>
ausschliesslich fuer den (die) bezeichneten Adressaten <br>
bestimmt sind. <br>
Wenn Sie nicht der genannte Adressat sind, darf dieses <br>
E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen <br>
Personen zugaenglich gemacht noch in anderer Weise <br>
verwertet werden.<br>
Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten<br>
wir Sie, dieses E-Mail und saemtliche angeschlossene<br>
Anhaenge zu loeschen. <br>
<br>
Please note: This email and any files transmitted with it is <br>
intended only for the named recipients and may contain <br>
confidential and/or privileged information. If you are not the <br>
intended recipient, please do not read, copy, use or disclose <br>
the contents of this communication to others and notify the <br>
sender immediately. Then please delete the email and any <br>
copies of it. Thank you.<br>
********************************************************</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic