httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David D'Antonio" <...@individual.com>
Subject RE: Want to add file caching to Apache
Date Fri, 21 Nov 1997 15:20:27 GMT
Keep in mind the way NT does caching, namely it uses a (dynamic) chunk of memory
for its "disk cache." So if a program grows in memory, less is available for the disk
cache and (one would assume) visa versa. I would think that it would be best to do
it all one way or the other (i.e. use Win32 functions and let NT manage the cache
[assuming it does this, of course] or do all the caching yourself). Don't mix & match.

-----Original Message-----
From:	Dean Gaudet [SMTP:dgaudet@arctic.org]
Sent:	Thursday, November 20, 1997 9:50 PM
To:	new-httpd@apache.org
Subject:	Re: Want to add file caching to Apache



On Thu, 20 Nov 1997, Brian Behlendorf wrote:


> >If you do add file caching to apache, make sure to leave a way not to do
> >this on NT.  File caching comes for free when you use the Win32 functions
> >like TransmitFile, etc that we have talked about using for Apache 2.0.  To
> >manage the file cache you setup a file handle cache, closing file handles
> >when you do not need the file in cache and keeping open the ones you do want
> >in cache.  Implementing a separate file cache would move the file cache out
> >of the kernel into user space and would force copies of the file date, which
> >is very CPU expensive...

Are file handles a limited resource under win32?  If so then this bites. 
At least with open()/mmap()/close() under unix you can fill many many Mb
of your process space with file data.  More than you would be able to keep
around open filehandles for typically.  But I suppose the same trick might
work for win32 using its similar-to-mmap stuff.  Remember that web
documents average 6k (from the point of view of an http proxy cache... 
some day I should get off my butt and get real data off of one of wired's
servers). 

Dean



begin 600 WINMAIL.DAT
M>)\^(AP/`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`J $```$````0`````P``, (````+``\.``````(!_P\!````1P``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````&YE=RUH='1P9$!A<&%C:&4N;W)G`%--
M5% `;F5W+6AT='!D0&%P86-H92YO<F<``!X``C !````!0```%--5% `````
M'@`#, $````5````;F5W+6AT='!D0&%P86-H92YO<F<``````P`5# $````#
M`/X/!@```!X``3 !````%P```"=N97<M:'1T<&1 87!A8VAE+F]R9R<```(!
M"S !````&@```%--5% Z3D57+4A45%!$0$%004-(12Y/4D<````#```Y````
M``L`0#H!````'@#V7P$````5````;F5W+6AT='!D0&%P86-H92YO<F<`````
M`@'W7P$```!'`````````($K'Z2^HQ 9G6X`W0$/5 (`````;F5W+6AT='!D
M0&%P86-H92YO<F<`4TU44 !N97<M:'1T<&1 87!A8VAE+F]R9P```P#]7P$`
M```#`/]?``````(!]@\!````! ````````+95P$$@ $`)P```%)%.B!786YT
M('1O(&%D9"!F:6QE(&-A8VAI;F<@=&\@07!A8VAE`.D,`06 `P`.````S0<+
M`!4`"@`4`!L`!0`R`0$@@ ,`#@```,T'"P`5``H`$0`E``4`.0$!"8 !`"$`
M```U,S<Q,#(S-D9$-C%$,3$Q.$9#-# P03 R-$,V-#0X,0#9!@$#D 8`\ @`
M`"$````+``(``0````L`(P```````P`F```````+`"D```````,`+@``````
M`P`V``````! `#D`0#;Y_I#VO $>`' ``0```"<```!213H@5V%N="!T;R!A
M9&0@9FEL92!C86-H:6YG('1O($%P86-H90```@%Q``$````6`````;SVD/[(
M-@)Q5&']$=&/Q "@),9$@0``'@`># $````%````4TU44 `````>`!\,`0``
M`!,```!D9&% :6YD:79I9'5A;"YC;VT```,`!A!U^,TF`P`'$%T%```>``@0
M`0```&4```!+145024Y-24Y$5$A%5T%93E1$3T530T%#2$E.1RQ.04U%3%E)
M5%5315-!*$193D%-24,I0TA53DM/1DU%34]2649/4DE44R)$25-+0T%#2$4B
M4T])1D%04D]'4D%-1U)/5U-)``````(!"1 !````Q@4``,(%``#8" ``3%I&
M=;L=]?5W``H!`P'W( *D`^,"`&.": K <V5T," '$X<"@P!0#O9P<G$R#_8F
M?0J ",@@.PEO,C5F-0* "H%U8P!0"P-C`P!!"V!N9S$P,S-)"Z8@2PG@<" +
M@" ";0N 9"!T:&4@"'=A>0>P5"!D;Q4'D6,`T&@+@&<L(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@^Q
M=1:0&;!%,^\/@!<`7I88H&,)`%NT7_C_5_A6!R[!4E(B,%L17C<6L<\A>%#@
M%H LPF]P5B$H$_\B, 0@3I47< (P3==DQE01_$EM"U ;$#TQ+,(9L ^P_PJQ
M)0!>6R)D!&!:HEY,6V'_3=<:T1<R4. $H!CP%J$F0?L9807 <T(1(;0B9!O!
M;R'_!:!EP >1;75%,SY ,[ 8H'M6`!HP:&>H!" CD1>00W1055FP>&8A`) C
MD"[_=! QR@<07E5AY1FA,N!9,?M;$0EP<PAA;R$:D 2!%V#]*6(_:,$:X';0
M%R)F0A^!^F)V87,CX'2E!4!1D281AP/P%S!F`R@I+VT`P/9P>Q%A$F5[$'<U
M&I Q$?].DA@P`Z!%,0,@`X$7D'VS_DT,,!MS&M$O\AV2;R $$?]N]'J#<38C
MT070!; K4@.1_TZ2)6<@`R9!99(;9 K "&#?%P%F$T4R=98@4WEEP!@P=2<P
M>5010EMQ) `BX'!^<'O1%R,C8 > %R %$&.[&K 6X&=!H!MD(F!R&K!_&\)W
MHUN5' (`D!;@"V!R^BTF0"U[0E$`7X !(%01OT0P&P$^XEH%?F47X&,B\:\"
M,!^2!) K,C8:L"@#4O\7(X;@;E$:PB- !]$:T0.1^T&B'9)X%Y <I'00>85V
MT/>'D3Y!AH)H(G,K0(^"&N']%Y!B6W G`1<!DT()<#4Q?X#2DW,:T2(B&M$#
M\ EQ)_]7]6ZQ(Y(P<3'*.D)-'S(5!1(!`)IP```#`! 0``````,`$1 `````
M`P" $/____] ``<PH&WOF9#VO % ``@PH&WOF9#VO $+``" "" &``````# 
M````````1@`````#A0````````,``H (( 8``````, ```````!&`````!"%
M`````````P`%@ @@!@``````P ```````$8`````4H4``+<-```>`"6 "" &
M``````# ````````1@````!4A0```0````0````X+C ``P`F@ @@!@``````
MP ```````$8``````84````````+`"^ "" &``````# ````````1@`````.
MA0````````,`,( (( 8``````, ```````!&`````!&%`````````P`R@ @@
M!@``````P ```````$8`````&(4````````>`$& "" &``````# ````````
M1@`````VA0```0````$`````````'@!"@ @@!@``````P ```````$8`````
M-X4```$````!`````````!X`0X (( 8``````, ```````!&`````#B%```!
I`````0`````````>`#T``0````4```!213H@``````,`#33]-P``9&F%
`
end


Mime
View raw message