[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kernel/Memory problem.



On Sat, 24 Jun 2000, Mike Almogy wrote:

> Here the thing, the server is Compaq 1200.
> It runs squid from the day we got it.
> But with lots of problems.

well, Compaq should be able to help. they give warrenty and service on
the hardware thy sell, and they openly support Linux.

> Do you think that i need a better hardware ?

I don't know the Compaq in question. but it sounds like you should
consider moving the cache repository over to 2-3 seperate drives (Squid
does the balancing in a smarter way than any RAID can). Format them with
ReiserFS, it will add stability and speed too.

> i'm thinking to get 6 disks box with duel CPU and 1 GB of ram.

now you're talking :-) 6 are better than 3, all depends on your needs.

> BTW, i had 4 swap partitions due to the sad truth that Linux did not used
> the swap at all, i thought that it might be because i gave it much larger
> swap then it can handle.

no. Linux once had the limitation of 128 meg swap partitions, this is no
longer the case, I think it was raised to 2 gigs. what you are
experiancing is really squid being efficiant. squid will cache as much
as possible in RAM for fast access to pages, and what it can't, it will
use the disk for. if it allowed itself to swap out parts of the RAM it
uses to the disk, you would lose the advantage of speed in accessing RAM
chips instead of disks, and it would not have been as well layed out as
the info it now reserves there. therefore it was decided in the last
major version of squid to stop using swap memory altogether, and just
use live RAM. the machine should not need to swap out anything unless
you are running anything other than squid.

> Plus if i need to reformat the swap space then i can do it by parts and not
> to leave the server with out swap at all.

just keep it on a seperate drive, that's all. a big cache server can
boot from a dumb IDE drive or regular SCSI and cache on Ultra SCSI
drives. I would have set it up that way.


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il