LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2011, 08:53 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Hardware question for Linux server


Hi,

The town hall in our small town currently has a Linux server I installed last summer. It's running CentOS 5. It currently acts as a mere file server, but I want to turn it into a gateway/firewall/proxy machine (and replace CentOS 5 by Slackware 13.37 in the process )

I wonder if I can simply add a classic PCI Ethernet card, the same type as the one found in your average desktop PC. Or does a NIC in this type of server differ from the one in a desktop PC, e. g. supposed to be more robust?

Currently there are about ten client desktops (half Windows, half Linux) and two big printers connected, so it's not a very busy server.
 
Old 10-06-2011, 10:09 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
You're gonna connect the new interface to your internet router, right? In this case, supposing your internet bandwidth is below 1Gb/s (the nominal rate of a cheap NIC), I think you won't notice much difference between the entry-level and an expensive one.
Yes, there are ethernet card with hardware checksum of packets and some other nice features that can help reduce latencies but, assumed one card like that is not already there, will maybe best fit on the other side, the one with the clients attached (much more bandwidth involved).
Instead, squid will benefit of fast access disks to record and serve cached pages, so getting a small SSD to act as /var/cache/squid will surely rocket its performances

Last edited by ponce; 10-06-2011 at 10:13 AM.
 
Old 10-06-2011, 11:02 AM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Thanks, ponce. In fact our Internet bandwidth is 1Mb/s, since this is the South French countryside. I'll keep in mind to install the new (cheap) NIC facing the Internet, and the onboard card facing the LAN. Though for storage I'll go with my usual RAID 5 disk array.

Ciao!
 
Old 10-06-2011, 11:36 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
If you got plenty, you can also use ram (I usually configure squid with 1 or 2 Gb of cache), just remember to reinitialize squid's cache (squid -z) at every reboot.
Sorry if I look too performance freak, but I like to push thingies (for fun and profit).

Last edited by ponce; 10-06-2011 at 11:40 AM.
 
Old 10-06-2011, 12:14 PM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,184

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Quote:
Originally Posted by kikinovak View Post
Thanks, ponce. In fact our Internet bandwidth is 1Mb/s, since this is the South French countryside. I'll keep in mind to install the new (cheap) NIC facing the Internet, and the onboard card facing the LAN. Though for storage I'll go with my usual RAID 5 disk array.

Ciao!
Consider an Intel Pro 1000 MT for the LAN side, and use the onboard NIC for the WAN side. If the box is a normal x86 box your options are likely to be PCI and PCI Express; go for the latter if the budget allows. A server class adapter is preferable, even in a small business, especially if this box is going to be a gateway/file server/Squid proxy. My advice would be to use a second OpenBSD box purely for the firewall, and Slackware for Squid/Samba/NFS/whatever.

If you are using Software RAID use RAID 0 instead of RAID 5 or RAID 1 for your Squid cache. There is no need for redundancy with your Squid cache. Use RAID 1 + backups for the system, and RAID 5 + backups for your data.
 
Old 10-07-2011, 12:51 AM   #6
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by ponce View Post
... Sorry if I look too performance freak, but I like to push thingies (for fun and profit).
I'd like to follow this advice as well as the one given below yours, but I'm working on a tight budget. This single machine acts as a file server as well as gateway/firewall/proxy, so it has to be RAID 5.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server vendor / hardware question g_paschoal Linux - Server 1 06-30-2011 08:42 AM
hardware question for planned samba server setup zogthegreat Linux - Hardware 3 06-14-2009 10:10 PM
general question on server hardware keratos Linux - Hardware 5 08-29-2008 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration