LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   slow internet access using squid (https://www.linuxquestions.org/questions/linux-networking-3/slow-internet-access-using-squid-135228/)

gigi 01-15-2004 06:28 PM

slow internet access using squid
 
hello,

im using squid (redhat v7.3) as my proxy server and accessing the internet using squid is very slow and it even goes to timeout connection accesing the internet. im using port 8080.

Hardware Specs:
Intel Dual Processor PIII
512MB Memory
2 x 17GB SCSI Harddisk
2 lancard (for public and internal ip)

Harddisk partition:
1st Disk
/swap - 1024mb
/boot - 1500mb
/ - 15000mb
2nd Disk
/home - 8700mb
/var - 8800mb



Is there any wrong with my configuration? Please help me.
Thanks.

leckie 01-16-2004 12:05 AM

well i cannot tell u what is wrong, but in general if squid is running slow this generally means something is timing out. Squid has lots of neat things u can do, but if something is not configured correctly is may fail and it may do this on every lookup adding upto 10sec to each request. This may be the dns setting finger etc.

use a default squid.conf file and see if u still experience this problem.
You may also be able to trace down the problem is the log files, and u can change the log level of squid to be more verbose which may help.

leckie 01-16-2004 12:28 AM

not that this will help. But what is the go with your partitions.
They are setup really bad.
first is this server only a squid server, as squid generally only uses one processor.

1 /boot is usually always less then 10mb on any system. so i would give it no more then 30mb(incase u compile a few kernels).
2 swap space it not very necessary on a squid server(but heaps of ram is) so mabe 200-500mb
3 make 2 separate cache dir on a journaled filesystem one on each hdd(~10gig each)
4 make a partition for /var/log, umm size depends on usage 200mb-2gb. do a
du -h --max-depth=1 to see how big /var/log is.


give the rest to root/ and usr.

if there are no users on the system don't make a home partition or a var one.

Also faster cpu is better then 2 or more cpu's.
and ram ram ram fill it with as much as u can. u need atleast 256mb but i would try and get 512. more ram= less disk usage.

gigi 01-18-2004 08:21 PM

could you please teach me how to partition my harddisk properly. how can i create a /cache partition?

thanks

leckie 01-20-2004 12:59 AM

ummmm put it simply reinstall


All times are GMT -5. The time now is 06:17 AM.