niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » Apps » Squid
tune up
Post new topic   Reply to topic Page 2 of 2 [28 Posts] View previous topic :: View next topic
Goto page:  Previous  1, 2
Author Message
W.Lagmay
*nix forums addict


Joined: 23 Apr 2005
Posts: 90

PostPosted: Mon May 30, 2005 5:30 am    Post subject: Re: tune up Reply with quote

with the below configuration of my fstab using a reiserfs FS do you think it
is ok
/dev/sdc1 /cache1 reiserfs notail,noatime
0 0

or I just stay with the default fstab which is:
/dev/sdc1 /cache1 reiserfs defaults 1 2

Thanks again,

wennie


----- Original Message -----
From: "Matus UHLAR - fantomas" <uhlar@fantomas.sk>
To: <squid-users@squid-cache.org>
Sent: Monday, May 30, 2005 9:26 AM
Subject: Re: [squid-users] tune up


Quote:
On 30.05 07:49, Wennie V. Lagmay wrote:
Another question, regarding file system, Im using reisersfs for my cache
partition and I've read that ext3 is faster than reiserfs,

well, some people did tests that showed ext2 is faster. that does not
necessarily mean it is really faster :)

If it so, is there a way or an option to make reiserfs as fast as ext3?
what are the parameters to be used for fstab to make reiserfs fast?

generic option noaccess to disable updating access times, and reiserfs
option notail and probably noborder.

In your experience which is the best file system for squid?

I use FreeBSD, therefore I'm kinda limited to its ufs (with softupdates)
;)

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Chernobyl was an Windows 95 beta test site.
Back to top
Steven Wilton
*nix forums beginner


Joined: 13 Apr 2005
Posts: 9

PostPosted: Mon May 30, 2005 5:42 am    Post subject: RE: tune up Reply with quote

If you're referring to my postings about a month ago, I've been doing some
further tests after getting some pointers from different people, and the
results are different.

We have a number of sets of proxies in different locations, each set being
load-balanced using wccp and layer 3 switch. My results were different when
comapring caches with lower loads (Avg 39 req/sec, peak 70 req/sec) than
when I was comparing caches with higher loads (170 req/sec avg, peak
Quote:
300req/sec).

I was using the aufs cache_dir type, as I have found this to be
significantly faster than diskd when running on linux. The different
paramaters that I was comparing were the load average (with aufs, as disk
i/o increases, there will be more threads waiting on disk i/o, which will
push the load average up), the disk utilisation (% time each disk had active
operations) and cpu utilisation.

I found that under low loads, ext3 mounted with data=writeback (the same
level of data protection as other journalled filesystems) gave the best
numbers (ie lower CPU, lower disk utilisation and lower load average.

I found that on our more loaded systems, reiserfs had lower disk utilisation
and a lower load average, at a slight cost of CPU time.

So, if the disk i/o is going to be a bottleneck (as it is in our case),
reiserfs is probably a better choice. If CPU is the main bottleneck, then
ext2/3 may be the best choice.

It also looks like reiserfs may use more resources under low load, but
scales better at the higher loads. This confirms the results of previous
benchmarks that show reiserfs to provide the highest throughput for a squid
proxy server (using the Web Polygraph program).

Steven

Quote:
-----Original Message-----
From: Wennie V. Lagmay [mailto:wlagmay@yanbulink.net]
Sent: Monday, May 30, 2005 12:49 PM
To: Henrik Nordstrom
Cc: Henrik Nordstrom; azeem ahmad; squid-users@squid-cache.org
Subject: Re: [squid-users] tune up

Another question, regarding file system, Im using reisersfs
for my cache
partition and I've read that ext3 is faster than reiserfs, If
it so, is
there a way or an option to make reiserfs as fast as ext3?
what are the
parameters to be used for fstab to make reiserfs fast?

In your experience which is the best file system for squid?

Thank you very much,

wennie
----- Original Message -----
From: "Henrik Nordstrom" <hno@squid-cache.org
To: "Wennie V. Lagmay" <wlagmay@yanbulink.net
Cc: "Henrik Nordstrom" <hno@squid-cache.org>; "azeem ahmad"
azeem81@msn.com>; <squid-users@squid-cache.org
Sent: Saturday, May 28, 2005 6:41 PM
Subject: Re: [squid-users] tune up


On Sat, 28 May 2005, Wennie V. Lagmay wrote:

Its only now that I knew this cache_dir issue, Im using
FC2 64 bit and
using diskd for my cache_dir. Is ther a way to migrate my
cache_dir to
aufs without harming my cache server.

Yes. Modify squid.conf and restart your Squid.

cache_dir aufs /cache1/spool/squid 25000 16 256
cache_dir aufs /cache2/spool/squid 25000 16 256
cache_dir aufs /cache3/spool/squid 25000 16 256

Regards
Henrik


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005
Back to top
Matus UHLAR - fantomas
*nix forums Guru


Joined: 21 Feb 2005
Posts: 430

PostPosted: Mon May 30, 2005 7:23 am    Post subject: Re: tune up Reply with quote

On 30.05 10:30, Wennie V. Lagmay wrote:
Quote:
with the below configuration of my fstab using a reiserfs FS do you think
it is ok
/dev/sdc1 /cache1 reiserfs notail,noatime
0 0

or I just stay with the default fstab which is:
/dev/sdc1 /cache1 reiserfs defaults 1 2

well, use 'notail,noatime' instead of 'defaults', but you probably should
leave the same numbers in 5th asnd 6th fields of fstab Smile


--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.
Back to top
W.Lagmay
*nix forums addict


Joined: 23 Apr 2005
Posts: 90

PostPosted: Mon May 30, 2005 8:35 am    Post subject: Re: tune up Reply with quote

Since im using diskd and im going to change it to aufs do i need to
recompile the squid? if so is there other way of enabling aufs without
recompliling? also can I change my configuration from diskd to aufs
directly?

thanks,

wennie


----- Original Message -----
From: "Steven Wilton" <swilton@q-net.net.au>
To: <squid-users@squid-cache.org>
Sent: Monday, May 30, 2005 10:42 AM
Subject: RE: [squid-users] tune up


Quote:

If you're referring to my postings about a month ago, I've been doing some
further tests after getting some pointers from different people, and the
results are different.

We have a number of sets of proxies in different locations, each set being
load-balanced using wccp and layer 3 switch. My results were different
when
comapring caches with lower loads (Avg 39 req/sec, peak 70 req/sec) than
when I was comparing caches with higher loads (170 req/sec avg, peak
300req/sec).

I was using the aufs cache_dir type, as I have found this to be
significantly faster than diskd when running on linux. The different
paramaters that I was comparing were the load average (with aufs, as disk
i/o increases, there will be more threads waiting on disk i/o, which will
push the load average up), the disk utilisation (% time each disk had
active
operations) and cpu utilisation.

I found that under low loads, ext3 mounted with data=writeback (the same
level of data protection as other journalled filesystems) gave the best
numbers (ie lower CPU, lower disk utilisation and lower load average.

I found that on our more loaded systems, reiserfs had lower disk
utilisation
and a lower load average, at a slight cost of CPU time.

So, if the disk i/o is going to be a bottleneck (as it is in our case),
reiserfs is probably a better choice. If CPU is the main bottleneck, then
ext2/3 may be the best choice.

It also looks like reiserfs may use more resources under low load, but
scales better at the higher loads. This confirms the results of previous
benchmarks that show reiserfs to provide the highest throughput for a
squid
proxy server (using the Web Polygraph program).

Steven

-----Original Message-----
From: Wennie V. Lagmay [mailto:wlagmay@yanbulink.net]
Sent: Monday, May 30, 2005 12:49 PM
To: Henrik Nordstrom
Cc: Henrik Nordstrom; azeem ahmad; squid-users@squid-cache.org
Subject: Re: [squid-users] tune up

Another question, regarding file system, Im using reisersfs
for my cache
partition and I've read that ext3 is faster than reiserfs, If
it so, is
there a way or an option to make reiserfs as fast as ext3?
what are the
parameters to be used for fstab to make reiserfs fast?

In your experience which is the best file system for squid?

Thank you very much,

wennie
----- Original Message -----
From: "Henrik Nordstrom" <hno@squid-cache.org
To: "Wennie V. Lagmay" <wlagmay@yanbulink.net
Cc: "Henrik Nordstrom" <hno@squid-cache.org>; "azeem ahmad"
azeem81@msn.com>; <squid-users@squid-cache.org
Sent: Saturday, May 28, 2005 6:41 PM
Subject: Re: [squid-users] tune up


On Sat, 28 May 2005, Wennie V. Lagmay wrote:

Its only now that I knew this cache_dir issue, Im using
FC2 64 bit and
using diskd for my cache_dir. Is ther a way to migrate my
cache_dir to
aufs without harming my cache server.

Yes. Modify squid.conf and restart your Squid.

cache_dir aufs /cache1/spool/squid 25000 16 256
cache_dir aufs /cache2/spool/squid 25000 16 256
cache_dir aufs /cache3/spool/squid 25000 16 256

Regards
Henrik


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005

Back to top
Askar
*nix forums addict


Joined: 01 Feb 2005
Posts: 72

PostPosted: Mon May 30, 2005 10:14 am    Post subject: Re: tune up Reply with quote

Wennie V. Lagmay wrote:

Quote:
Since im using diskd and im going to change it to aufs do i need to
recompile the squid? if so is there other way of enabling aufs without
recompliling? also can I change my configuration from diskd to aufs
directly?

thanks,

wennie


----- Original Message ----- From: "Steven Wilton" <swilton@q-net.net.au
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 10:42 AM
Subject: RE: [squid-users] tune up



If you're referring to my postings about a month ago, I've been doing
some
further tests after getting some pointers from different people, and the
results are different.

We have a number of sets of proxies in different locations, each set
being
load-balanced using wccp and layer 3 switch. My results were
different when
comapring caches with lower loads (Avg 39 req/sec, peak 70 req/sec) than
when I was comparing caches with higher loads (170 req/sec avg, peak

300req/sec).


I was using the aufs cache_dir type, as I have found this to be
significantly faster than diskd when running on linux. The different
paramaters that I was comparing were the load average (with aufs, as
disk
i/o increases, there will be more threads waiting on disk i/o, which
will
push the load average up), the disk utilisation (% time each disk had
active
operations) and cpu utilisation.

I found that under low loads, ext3 mounted with data=writeback (the same
level of data protection as other journalled filesystems) gave the best
numbers (ie lower CPU, lower disk utilisation and lower load average.

I found that on our more loaded systems, reiserfs had lower disk
utilisation
and a lower load average, at a slight cost of CPU time.

So, if the disk i/o is going to be a bottleneck (as it is in our case),
reiserfs is probably a better choice. If CPU is the main bottleneck,
then
ext2/3 may be the best choice.

It also looks like reiserfs may use more resources under low load, but
scales better at the higher loads. This confirms the results of
previous
benchmarks that show reiserfs to provide the highest throughput for a
squid
proxy server (using the Web Polygraph program).

Steven

-----Original Message-----
From: Wennie V. Lagmay [mailto:wlagmay@yanbulink.net]
Sent: Monday, May 30, 2005 12:49 PM
To: Henrik Nordstrom
Cc: Henrik Nordstrom; azeem ahmad; squid-users@squid-cache.org
Subject: Re: [squid-users] tune up

Another question, regarding file system, Im using reisersfs
for my cache
partition and I've read that ext3 is faster than reiserfs, If
it so, is
there a way or an option to make reiserfs as fast as ext3?
what are the
parameters to be used for fstab to make reiserfs fast?

In your experience which is the best file system for squid?

Thank you very much,

wennie
----- Original Message ----- From: "Henrik Nordstrom"
hno@squid-cache.org
To: "Wennie V. Lagmay" <wlagmay@yanbulink.net
Cc: "Henrik Nordstrom" <hno@squid-cache.org>; "azeem ahmad"
azeem81@msn.com>; <squid-users@squid-cache.org
Sent: Saturday, May 28, 2005 6:41 PM
Subject: Re: [squid-users] tune up


On Sat, 28 May 2005, Wennie V. Lagmay wrote:

Its only now that I knew this cache_dir issue, Im using
FC2 64 bit and
using diskd for my cache_dir. Is ther a way to migrate my
cache_dir to
aufs without harming my cache server.

Yes. Modify squid.conf and restart your Squid.

cache_dir aufs /cache1/spool/squid 25000 16 256
cache_dir aufs /cache2/spool/squid 25000 16 256
cache_dir aufs /cache3/spool/squid 25000 16 256

Regards
Henrik


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 5/27/2005





I'm affraid you have to recompile squid if you didnt enable aufs

eariler, you can check squid compilation option with "squid -v" , see if
there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to recompile squid.

regards

askar
Back to top
W.Lagmay
*nix forums addict


Joined: 23 Apr 2005
Posts: 90

PostPosted: Mon May 30, 2005 10:26 am    Post subject: Re: tune up Reply with quote

Ok if im going to recompile it again, i just start squid and it should be
working again right?
second if i recompile it --enable-storeio="aufs" do I need to
enable --with-aufs-threads=1024 and is a 1024 value is ok?
during recompilation, can I let squid running? aftrer I recompile it I sould
only issue a command squid -z and suid start am I right?
what is the posiblity that my squid will not start?

Thanks,

Wennie




Quote:
I'm affraid you have to recompile squid if you didnt enable aufs eariler,
you can check squid compilation option with "squid -v" , see if there
"--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to recompile
squid.

regards

askar
Back to top
Askar
*nix forums addict


Joined: 01 Feb 2005
Posts: 72

PostPosted: Mon May 30, 2005 10:39 am    Post subject: Re: tune up Reply with quote

Wennie V. Lagmay wrote:

Quote:
Ok if im going to recompile it again, i just start squid and it should
be working again right?

yes

Quote:
second if i recompile it --enable-storeio="aufs" do I need to enable
--with-aufs-threads=1024 and is a 1024 value is ok?

I don't have defined -with-aufs-threads=1024 options while compiling
squid and its working just cool

Quote:

during recompilation, can I let squid running? aftrer I recompile it I
sould only issue a command squid -z and suid start am I right?

yep let squid serving clients, don't issue squid -z command no need to
do so. Before giving "make install" command for safty cp your squid.conf
file to another location if you want to reuse the same squid.conf and
then issue "make install" and place the squid.conf in
/usr/local/squid/etc, and change the cache_dir line only replace diskd
with aufs.
then shutdown the squid and restart it.

Quote:

what is the posiblity that my squid will not start?

I'm sure it will start with no problem Wink


Quote:
Thanks,

Wennie




I'm affraid you have to recompile squid if you didnt enable aufs
eariler, you can check squid compilation option with "squid -v" , see
if there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to recompile
squid.

regards

askar



Back to top
W.Lagmay
*nix forums addict


Joined: 23 Apr 2005
Posts: 90

PostPosted: Mon May 30, 2005 10:45 am    Post subject: Re: tune up Reply with quote

Thank you very much Askar,

Now it's the only the option --with-aufs-threads=1024 is not clear, what is
this option and is 1024 value is ok, anybody can you please enlighten me?

wennie

----- Original Message -----
From: "Askar" <askar@askarali.info>
To: <squid-users@squid-cache.org>
Sent: Monday, May 30, 2005 3:39 PM
Subject: Re: [squid-users] tune up


Quote:
Wennie V. Lagmay wrote:

Ok if im going to recompile it again, i just start squid and it should be
working again right?

yes

second if i recompile it --enable-storeio="aufs" do I need to
enable --with-aufs-threads=1024 and is a 1024 value is ok?

I don't have defined -with-aufs-threads=1024 options while compiling squid
and its working just cool


during recompilation, can I let squid running? aftrer I recompile it I
sould only issue a command squid -z and suid start am I right?

yep let squid serving clients, don't issue squid -z command no need to do
so. Before giving "make install" command for safty cp your squid.conf file
to another location if you want to reuse the same squid.conf and then
issue "make install" and place the squid.conf in /usr/local/squid/etc, and
change the cache_dir line only replace diskd with aufs.
then shutdown the squid and restart it.


what is the posiblity that my squid will not start?

I'm sure it will start with no problem ;)

Thanks,

Wennie




I'm affraid you have to recompile squid if you didnt enable aufs
eariler, you can check squid compilation option with "squid -v" , see if
there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to recompile
squid.

regards

askar




Back to top
Askar
*nix forums addict


Joined: 01 Feb 2005
Posts: 72

PostPosted: Mon May 30, 2005 10:59 am    Post subject: Re: tune up Reply with quote

Wennie V. Lagmay wrote:

Quote:
Thank you very much Askar,

Now it's the only the option --with-aufs-threads=1024 is not clear,
what is this option and is 1024 value is ok, anybody can you please
enlighten me?

wennie

hi wennie,
I thinks you dont need to do anything fancy for aufs,
as i read in http://www.oreilly.com/catalog/squid/chapter/ch08.pdf

according to the author squid will autmatically starts thread depends on
number of cache_dir.

Table 8-1. Default number of threads for up to six cache directories
cache_dirs Threads
1 16
2 26
3 32

However for my 2 cache_dir I have ...
$ps -ef | grep squid | wc -l
31

of squid processes.

regards


Quote:

----- Original Message ----- From: "Askar" <askar@askarali.info
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 3:39 PM
Subject: Re: [squid-users] tune up


Wennie V. Lagmay wrote:

Ok if im going to recompile it again, i just start squid and it
should be working again right?


yes

second if i recompile it --enable-storeio="aufs" do I need to
enable --with-aufs-threads=1024 and is a 1024 value is ok?


I don't have defined -with-aufs-threads=1024 options while compiling
squid and its working just cool


during recompilation, can I let squid running? aftrer I recompile it
I sould only issue a command squid -z and suid start am I right?


yep let squid serving clients, don't issue squid -z command no need
to do so. Before giving "make install" command for safty cp your
squid.conf file to another location if you want to reuse the same
squid.conf and then issue "make install" and place the squid.conf in
/usr/local/squid/etc, and change the cache_dir line only replace
diskd with aufs.
then shutdown the squid and restart it.


what is the posiblity that my squid will not start?

I'm sure it will start with no problem ;)

Thanks,

Wennie




I'm affraid you have to recompile squid if you didnt enable aufs
eariler, you can check squid compilation option with "squid -v" ,
see if there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to
recompile squid.

regards

askar








Back to top
W.Lagmay
*nix forums addict


Joined: 23 Apr 2005
Posts: 90

PostPosted: Mon May 30, 2005 11:14 am    Post subject: Re: tune up Reply with quote

Ok then if my cache-dir is 3 as:
cache_dir aufs /cache1/spool/squid 25000 16 256
cache_dir aufs /cache2/spool/squid 25000 16 256
cache_dir aufs /cache3/spool/squid 25000 16 256

so if im going to recompile it it should be
--enable-storeio="aufs" --with-aufs-threads=32

am I correct?

thanks you,

wennie


----- Original Message -----
From: "Askar" <askar@askarali.info>
To: <squid-users@squid-cache.org>
Sent: Monday, May 30, 2005 3:59 PM
Subject: Re: [squid-users] tune up


Quote:
Wennie V. Lagmay wrote:

Thank you very much Askar,

Now it's the only the option --with-aufs-threads=1024 is not clear,
what is this option and is 1024 value is ok, anybody can you please
enlighten me?

wennie

hi wennie,
I thinks you dont need to do anything fancy for aufs,
as i read in http://www.oreilly.com/catalog/squid/chapter/ch08.pdf

according to the author squid will autmatically starts thread depends on
number of cache_dir.

Table 8-1. Default number of threads for up to six cache directories
cache_dirs Threads
1 16
2 26
3 32

However for my 2 cache_dir I have ...
$ps -ef | grep squid | wc -l
31

of squid processes.

regards



----- Original Message ----- From: "Askar" <askar@askarali.info
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 3:39 PM
Subject: Re: [squid-users] tune up


Wennie V. Lagmay wrote:

Ok if im going to recompile it again, i just start squid and it
should be working again right?


yes

second if i recompile it --enable-storeio="aufs" do I need to
enable --with-aufs-threads=1024 and is a 1024 value is ok?


I don't have defined -with-aufs-threads=1024 options while compiling
squid and its working just cool


during recompilation, can I let squid running? aftrer I recompile it
I sould only issue a command squid -z and suid start am I right?


yep let squid serving clients, don't issue squid -z command no need
to do so. Before giving "make install" command for safty cp your
squid.conf file to another location if you want to reuse the same
squid.conf and then issue "make install" and place the squid.conf in
/usr/local/squid/etc, and change the cache_dir line only replace
diskd with aufs.
then shutdown the squid and restart it.


what is the posiblity that my squid will not start?

I'm sure it will start with no problem ;)

Thanks,

Wennie




I'm affraid you have to recompile squid if you didnt enable aufs
eariler, you can check squid compilation option with "squid -v" ,
see if there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to
recompile squid.

regards

askar









Back to top
Askar
*nix forums addict


Joined: 01 Feb 2005
Posts: 72

PostPosted: Mon May 30, 2005 11:29 am    Post subject: Re: tune up Reply with quote

Wennie V. Lagmay wrote:

Quote:
Ok then if my cache-dir is 3 as:
cache_dir aufs /cache1/spool/squid 25000 16 256
cache_dir aufs /cache2/spool/squid 25000 16 256
cache_dir aufs /cache3/spool/squid 25000 16 256

so if im going to recompile it it should be --enable-storeio="aufs"
--with-aufs-threads=32
am I correct?

dude you don't have to specify "--with-aufs-threads=32", squid will take

care of this

Quote:
thanks you,

wennie

regards

askar

Quote:

----- Original Message ----- From: "Askar" <askar@askarali.info
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 3:59 PM
Subject: Re: [squid-users] tune up


Wennie V. Lagmay wrote:

Thank you very much Askar,

Now it's the only the option --with-aufs-threads=1024 is not clear,
what is this option and is 1024 value is ok, anybody can you please
enlighten me?

wennie


hi wennie,
I thinks you dont need to do anything fancy for
aufs, as i read in http://www.oreilly.com/catalog/squid/chapter/ch08.pdf

according to the author squid will autmatically starts thread depends
on number of cache_dir.

Table 8-1. Default number of threads for up to six cache directories
cache_dirs Threads
1 16
2 26
3 32

However for my 2 cache_dir I have ...
$ps -ef | grep squid | wc -l
31

of squid processes.

regards



----- Original Message ----- From: "Askar" <askar@askarali.info
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 3:39 PM
Subject: Re: [squid-users] tune up


Wennie V. Lagmay wrote:

Ok if im going to recompile it again, i just start squid and it
should be working again right?



yes

second if i recompile it --enable-storeio="aufs" do I need to
enable --with-aufs-threads=1024 and is a 1024 value is ok?



I don't have defined -with-aufs-threads=1024 options while
compiling squid and its working just cool


during recompilation, can I let squid running? aftrer I recompile
it I sould only issue a command squid -z and suid start am I right?



yep let squid serving clients, don't issue squid -z command no need
to do so. Before giving "make install" command for safty cp your
squid.conf file to another location if you want to reuse the same
squid.conf and then issue "make install" and place the squid.conf
in /usr/local/squid/etc, and change the cache_dir line only replace
diskd with aufs.
then shutdown the squid and restart it.


what is the posiblity that my squid will not start?

I'm sure it will start with no problem ;)

Thanks,

Wennie




I'm affraid you have to recompile squid if you didnt enable aufs
eariler, you can check squid compilation option with "squid -v" ,
see if there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to
recompile squid.

regards

askar












Back to top
W.Lagmay
*nix forums addict


Joined: 23 Apr 2005
Posts: 90

PostPosted: Mon May 30, 2005 1:45 pm    Post subject: Re: tune up Reply with quote

Thanks Askar


----- Original Message -----
From: "Askar" <askar@askarali.info>
To: "Wennie V. Lagmay" <wlagmay@yanbulink.net>
Cc: <squid-users@squid-cache.org>
Sent: Monday, May 30, 2005 4:29 PM
Subject: Re: [squid-users] tune up


Quote:
Wennie V. Lagmay wrote:

Ok then if my cache-dir is 3 as:
cache_dir aufs /cache1/spool/squid 25000 16 256
cache_dir aufs /cache2/spool/squid 25000 16 256
cache_dir aufs /cache3/spool/squid 25000 16 256

so if im going to recompile it it should
be --enable-storeio="aufs" --with-aufs-threads=32
am I correct?

dude you don't have to specify "--with-aufs-threads=32", squid will take
care of this

thanks you,

wennie

regards
askar


----- Original Message ----- From: "Askar" <askar@askarali.info
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 3:59 PM
Subject: Re: [squid-users] tune up


Wennie V. Lagmay wrote:

Thank you very much Askar,

Now it's the only the option --with-aufs-threads=1024 is not clear,
what is this option and is 1024 value is ok, anybody can you please
enlighten me?

wennie


hi wennie,
I thinks you dont need to do anything fancy for aufs,
as i read in http://www.oreilly.com/catalog/squid/chapter/ch08.pdf

according to the author squid will autmatically starts thread depends on
number of cache_dir.

Table 8-1. Default number of threads for up to six cache directories
cache_dirs Threads
1 16
2 26
3 32

However for my 2 cache_dir I have ...
$ps -ef | grep squid | wc -l
31

of squid processes.

regards



----- Original Message ----- From: "Askar" <askar@askarali.info
To: <squid-users@squid-cache.org
Sent: Monday, May 30, 2005 3:39 PM
Subject: Re: [squid-users] tune up


Wennie V. Lagmay wrote:

Ok if im going to recompile it again, i just start squid and it
should be working again right?



yes

second if i recompile it --enable-storeio="aufs" do I need to
enable --with-aufs-threads=1024 and is a 1024 value is ok?



I don't have defined -with-aufs-threads=1024 options while compiling
squid and its working just cool


during recompilation, can I let squid running? aftrer I recompile it
I sould only issue a command squid -z and suid start am I right?



yep let squid serving clients, don't issue squid -z command no need to
do so. Before giving "make install" command for safty cp your
squid.conf file to another location if you want to reuse the same
squid.conf and then issue "make install" and place the squid.conf in
/usr/local/squid/etc, and change the cache_dir line only replace diskd
with aufs.
then shutdown the squid and restart it.


what is the posiblity that my squid will not start?

I'm sure it will start with no problem ;)

Thanks,

Wennie




I'm affraid you have to recompile squid if you didnt enable aufs
eariler, you can check squid compilation option with "squid -v" ,
see if there "--enable-storeio=aufs,coss,diskd,ufs"
Again if you don't see aufs support then don't hestitate to
recompile squid.

regards

askar













Back to top
stevejack
*nix forums beginner


Joined: 11 Sep 2009
Posts: 3

PostPosted: Fri Sep 11, 2009 10:34 am    Post subject: Reply with quote

On high-volume sites significant performance improvements can be attained by setting up a reverse proxy in front of the actual Midgard, Squid is a popular choice.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 2 of 2 [28 Posts] Goto page:  Previous  1, 2
View previous topic :: View next topic
The time now is Fri Sep 03, 2010 1:50 pm | All times are GMT
navigation Forum index » Apps » Squid
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Aborted clients status variable seems increasing -how to ... Lakshmi MySQL 4 Thu Jun 15, 2006 7:54 am
No new posts How to tune function plpgsql Dany De Bontridder PostgreSQL 0 Sat May 06, 2006 10:33 am
No new posts ANN: pywinauto 0.3.1 released - Performance tune-ups mark.m.mcmahon@gmail.com python 0 Thu Mar 30, 2006 1:34 pm
No new posts Squid Tune on high traffic ss babu Squid 2 Sun Mar 12, 2006 6:22 am
No new posts How to tune LIBRARY CACHE latch contention Dusan Bolek Server 12 Wed Jan 25, 2006 4:42 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Sponsors: Debt Help | Loans | Debt Help | House Insurance | Submit articles
Privacy Policy
[ Time: 0.2205s ][ Queries: 17 (0.1565s) ][ GZIP on - Debug on ]