Squid Best Performance Tune Up Configuration

Taking care of your Linux box.

Squid Best Performance Tune Up Configuration

Postby Beloshi » Tue Feb 24, 2004 5:50 pm

Hi AssalamOaleKum ALL Members

I have Configured My Linux Box I m using Linux 8.0 with the squid2.4stable7 and it is running fine but is there ne thing or ne add script to make my squid Perform towards my network best and if there is any such configuration so let me know I wuld b thankful.

With THanks
Beloshi
Do Bad and Remember, Do Good n Forget!
Beloshi
Cadet
 
Posts: 9
Joined: Sat Feb 21, 2004 5:01 pm
Website: http://www.waqartech.com
WLM: itzme_libran
Yahoo Messenger: b.beloshi
Location: Karachi

Postby zaeemarshad » Tue Feb 24, 2004 10:21 pm

put in loads of ram :) i mean at least 512 MB and then configure squid to use about 350-400 of it assuming that this system is for caching only and doing no other memory intensive task. you can also use heap GDSF policy. also you can locate the cache directroy on a raid volume(raid 0) or atleast on a separate disk than the OS. These steps will sure help.

Regards
-Zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad

Postby kernel-trap » Wed Feb 25, 2004 2:54 pm

how many client do u have ?

use Reiserfs file on cache directory aslo improvement

this link may be helpful

http://www.devshed.com/c/a/Administrati ... ith-Squid/

Regards
kernel-trap
Havaldaar
 
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

Postby Beloshi » Wed Feb 25, 2004 5:41 pm

Thanks a Lot zaeem and Kernel-trap for ur reply and zaeem i have already 512Mb ram and seperate cache partition abt 25GB of /cache drive
:) and i will surely look forward for Raid but not yet cause the Number of Clients on ma Half are abt 100 i know that from some hardware i can gain more performance than ne thing but the squid thing in wich additional settin is required to work more perfect and secure ;) if there are more solutions then let me know abt it i wuld appericiate
Thanks
BeLoSHi
Do Bad and Remember, Do Good n Forget!
Beloshi
Cadet
 
Posts: 9
Joined: Sat Feb 21, 2004 5:01 pm
Website: http://www.waqartech.com
WLM: itzme_libran
Yahoo Messenger: b.beloshi
Location: Karachi

Postby zaeemarshad » Wed Feb 25, 2004 11:59 pm

nice to hear that i am of help. also try using the malloc or dlmalloc library for compiling squid if you download the source. that should also effect the performance.

cheers
-zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad

Postby farhantoqeer » Thu Feb 26, 2004 12:12 am

Beloshi, may i know how many users will benifit from all of your efforts?
A: Yes
Q: Is top-posting bad?
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi

Postby Beloshi » Fri Feb 27, 2004 4:05 am

arhantoqeer i have mentioned it before :) i have 100 users Running .... My setup scenerio is Like dat ... I have a Radio Link of 128 symetric pipe up and down Both and its All running very smothely but if there r additional tune Up for ma Linux Box Squid Conf then Let me Know.

and abt Reiserfs partition thanks to kernel-trap it was really a nice suggestion but i have to built ma Box again and it will cost me Loss of ma 16 GB cache but never mind i will try it thou smtime ...

Thanks
BeLoShI
Do Bad and Remember, Do Good n Forget!
Beloshi
Cadet
 
Posts: 9
Joined: Sat Feb 21, 2004 5:01 pm
Website: http://www.waqartech.com
WLM: itzme_libran
Yahoo Messenger: b.beloshi
Location: Karachi

Postby kernel-trap » Fri Feb 27, 2004 1:09 pm

Beloshi wrote:arhantoqeer i have mentioned it before :) i have 100 users Running .... My setup scenerio is Like dat ... I have a Radio Link of 128 symetric pipe up and down Both and its All running very smothely but if there r additional tune Up for ma Linux Box Squid Conf then Let me Know.

and abt Reiserfs partition thanks to kernel-trap it was really a nice suggestion but i have to built ma Box again and it will cost me Loss of ma 16 GB cache but never mind i will try it thou smtime ...

Thanks
BeLoShI



move your all directories in /cache partition to some other partition
format the /cache with reiserfs and put the cache directories back
if u dont have much disk space on other partition try ziping it like

[root@Cache5 cache]#zip cache.zip * ( will zip all directories)

ok then unzip it after /cache is formatt with reisferfs

Regards
kernel-trap
Havaldaar
 
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

squid Tweeking

Postby SoFh » Sat Feb 28, 2004 5:43 am

Sallam All!
Dear Beloshi i am not an experienced user like others are.But i think may be one clue from me can help you.U didn't tell r u using UFs or Diskd for your cahce directory.If ufs then compile Squid with Diskd and i think it would let you feel the difference.Also play a little with refresh_pattern i-e increase the minimum value from 0 to like 5 or 10.
If i am wrong at somewhere please Guys guide me as i am doing all this on my own without any theory or class.So i tell what i think is correct.
Thanks~!
SoFh
Cadet
 
Posts: 3
Joined: Sat Feb 28, 2004 5:17 am

Re:

Postby LinuxFreaK » Sat Feb 28, 2004 6:08 am

Dear Beloshi,
Salam,

There are many thing and lots of way to implement what ever you want. but you must know what you need and how can you do this. kindly check this http://squid.visolve.com/squid24s1/contents.htm

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby lambda » Sun Feb 29, 2004 3:33 pm

put your cache files on a separate drive, and put that drive on a separate ide controller. make sure the squid logs and cache files aren't on the same drive.

use scsi instead of ide.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby dandywalisarkar » Fri May 21, 2004 4:05 pm

Hello every one am new to this linux pakistan forum and whil reading squid tune up instructions i came to know that sombody suggested using RAID :) as far as my experience goes RAID is a killer for squid performance.
------------------------------------------------
If windows were to be an animal, it would have been a fainting goat.............
dandywalisarkar
Cadet
 
Posts: 13
Joined: Fri May 21, 2004 3:56 pm
ICQ: 27053855
Website: http://www.iqranet.info
WLM: hilalafridi@hotmail.com
Yahoo Messenger: hilalafridi@yahoo.com
AOL: haafridi
Location: Mardan

Postby zaeemarshad » Fri May 21, 2004 5:50 pm

dandywalisarkar wrote:Hello every one am new to this linux pakistan forum and whil reading squid tune up instructions i came to know that sombody suggested using RAID :) as far as my experience goes RAID is a killer for squid performance.


Any reasons for that?? What RAID configuration are you talking about.

-Zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad

Postby dandywalisarkar » Fri May 21, 2004 11:08 pm

yeps the main reason for that is squid performs many read writes per second which comes as a bottle neck when RAID any RAID is considered none of the squid developers or squid configurators prefer using RAID in my personal opinion using RAID creates a Total cost os ownsership problem along with the read write bottle necks:)
------------------------------------------------

If windows were to be an animal, it would have been a fainting goat.............
dandywalisarkar
Cadet
 
Posts: 13
Joined: Fri May 21, 2004 3:56 pm
ICQ: 27053855
Website: http://www.iqranet.info
WLM: hilalafridi@hotmail.com
Yahoo Messenger: hilalafridi@yahoo.com
AOL: haafridi
Location: Mardan

Postby zaeemarshad » Sun May 23, 2004 9:36 pm

dandywalisarkar wrote:yeps the main reason for that is squid performs many read writes per second which comes as a bottle neck when RAID any RAID is considered none of the squid developers or squid configurators prefer using RAID in my personal opinion using RAID creates a Total cost os ownsership problem along with the read write bottle necks:)


many reads/writes per second means that a single IDE is a bottle neck while a RAID 0 configuration is a lot better. Nevertheless i will check out squid developer's mailing list to see if such an issue has been reported. Can you point me to a link where you read that statement.

Regards
Zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron