Re: [Soekris] Would a net5501 reliably host a web site?
On 2010-06-24, Ralph Becker-Szendy wrote: > > The real limitation will probably be amount of memory: To run a 1TB file > server under OpenBSD you really need to have at least 1GB of memory > available to the file system (once the kernel has taken its part), so > you can run fsck and have enough file system buffer space. You can hugely reduce fsck's memory requirements by adjusting newfs parameters, especially increasing block size and decreasing inode density from the defaults. Consider the expected average file size and have a play with different parameters. Try it on a running system where you can send SIGINFO to the fsck process and you'll get some feedback on how far it's got. If you haven't tried adjusting this before, I think you will be very surprised at the difference it makes. If you have free RAM when the system is running you might want to look at increasing the kern.bufcachepercent sysctl (this memory isn't dedicated to buffer cache; if processes start using more memory they take it back). But further discussion along these lines should probably move to an OpenBSD list. ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
Re: [Soekris] Would a net5501 reliably host a web site?
On Thu, Jun 24, 2010 at 18:58, Ralph Becker-Szendy wrote: > The real limitation will probably be amount of memory: To run a 1TB file > server under OpenBSD you really need to have at least 1GB of memory [...] To add to that warning: this is why several people recommend to split such big drives up into smaller partitions. Of course there are downsides: utilization is likely lower and it takes more planning, but at least you can recover from power outages more easily. In case you're doing archiving on such (parts of) discs, it may be useful to keep partitions mounted read-only (one less section to fsck, taking less time to restart a machine). Regards, Rogier ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
Re: [Soekris] Would a net5501 reliably host a web site?
On 6/24/2010 5:00 AM, soekris-tech-requ...@lists.soekris.com wrote: > Would a net5501 reliably host a web site? On a 5501 with a single PATA laptop drive, I'm current running the gateway machine and infrastructure support: OpenBSD, NAT'ing firewall for a 2 MBit symmetric DSL link, router for 3 different internal networks (external wired, internal wired DMZ, internal wired user, and a wireless AP for internal), DNS/DHCP/NTP/lpd server, squid proxy for web traffic, and Apache for some internal static web pages (including media files, the server has access to dozens of GB, but doesn't run scripts, nor high traffic). Runs excellently. It also runs an NFS server that only sees occasional use, and isn't blazingly fast (can not saturate the 100 base T link), but so far I have not cared enough to figure out where the bottleneck is. The next step wil be: upgrade the machine to be a 1TB file server; replace the 100GB PATA laptop disk with a SATA controller in the PCI slot and put two 1TB SATA disks on it (with software mirroring), boot from a CF card, and set up a NFS and Samba server; it will have to be able to saturate the 100BT link. It's an open question whether whether the 5501 will be able to do that, from a CPU power and bandwidth standpoint. The real limitation will probably be amount of memory: To run a 1TB file server under OpenBSD you really need to have at least 1GB of memory available to the file system (once the kernel has taken its part), so you can run fsck and have enough file system buffer space. To have some space for applications, and for safety margin, the system should probably have 2GB of RAM, and you can't do that on a 5501. We'll see whether this workload will fit in the 1/2GB of the 5501 (I'm willing to live with long boot times and swapping during fsck). -- Ralph Becker-Szendyralph at lr dot los-gatos dot ca dot us 735 Sunset Ridge Rd, Los Gatos, CA 95033 408-395-1435 ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
Re: [Soekris] Would a net5501 reliably host a web site?
Yes it will be more lightweight but of course at the cost of limited options. I'm running basically everything off of my 5501: Apache (mostly for Horde/(d)imp), MySQL (for wordpress), postfix, spampd, bind, dhcpd, tor, squid, privoxy, Samba, arpd, ntpd, nfsd and inetd to name the important ones. But I also have screen session with irssi running most of the time. 512MB is a lot if you don't run X. Kind regards, Alex. - Message from edfle...@gmail.com - Date: Wed, 23 Jun 2010 19:33:19 -0700 From: Ed Flecko Subject: [Soekris] Would a net5501 reliably host a web site? To: soekris-tech@lists.soekris.com > Thank you all! > > Hey Will - Lighttpd might use less resources (but I can't imagine that > much where performance would really suffer, would it?), but > "hardening" Apache has just got to be more flexible...I would think. > > Yes? No? > > Ed > - End message from edfle...@gmail.com - #_ __ _ __ http://www.nagilum.org/ \n icq://69646724 # # / |/ /__ _(_) /_ _ nagi...@nagilum.org \n +491776461165 # # // _ `/ _ `/ / / // / ' \ Amiga (68k/PPC): AOS/NetBSD/Linux # # /_/|_/\_,_/\_, /_/_/\_,_/_/_/_/ Mac (PPC): MacOS-X / Linux / MacOS-X # # /___/ x86: FreeBSD/Linux/Solaris/Win2k ARM9: EPOC EV6 # cakebox.homeunix.net - all the machine one needs.. ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
Re: [Soekris] Would a net5501 reliably host a web site?
Ed Flecko wrote: > I'm thinking of buying a net5501, installing a SATA drive, > and using Apache on FreeBSD for use on my home LAN. I > might even install Squid, but maybe all this would be too > much for this device? > > For just my personal web site, do you think the > performance of the net5501 would be acceptable? Would I > have any reliability issues that I might need to consider? I'm running my personal web site from a net4801 with a 2.5" laptop hard-disk without any problems. - And without any special optimisations. > Comments? Suggestions? Remember that Varnish is much more efficient than Squid as a front-end cache for your own web server. Greetings, Jacob -- "But I mean it's so unfair ... but I don't know who for yet" - Djibard ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
[Soekris] Would a net5501 reliably host a web site?
Thank you all! Hey Will - Lighttpd might use less resources (but I can't imagine that much where performance would really suffer, would it?), but "hardening" Apache has just got to be more flexible...I would think. Yes? No? Ed smime.p7s Description: S/MIME cryptographic signature ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
Re: [Soekris] Would a net5501 reliably host a web site?
Ed Flecko wrote at 2010-06-23 20:25 -0500: > I'd like your opinion. The following is indeed my opinion and not backed by a significant amount of experience with the net5501. > I'm thinking of buying a net5501, installing a SATA drive, and using > Apache on FreeBSD for use on my home LAN. I might even install Squid, > but maybe all this would be too much for this device? I have been working on setting up a net5501 similarly (SATA drive and wireless PCI card). Hopefully I will eventually finish the page documenting my efforts: http://wiki.debian.org/green/Router > For just my personal web site, do you think the performance of the > net5501 would be acceptable? Would I have any reliability issues that > I might need to consider? I have not had any hardware related problems with my net5501 yet. BIOS configuration for that SATA drive was a bit of a trick for me (not well documented, but ask questions here), and grub must be configured with fallback for booting from CompactFlash in case of a hard drive failure. signature.asc Description: Digital signature ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
Re: [Soekris] Would a net5501 reliably host a web site?
I already do this with lighttpd on a net5501 which is also running as a NetBSD firewall and it works fine ... not sure whether Apache might be too heavyweight, but for me lighttpd for static pages and simple CGI it's not a problem ... I'm on the downstream end of a reasonable ADSL link and so far no reliability issues that I've noticed ... thankfully our power hasn't had dropouts, nor have I had HDD issues, but that would be the expected faults, I'd imagine. On Wed, 23 Jun 2010 18:25 -0700, "Ed Flecko" wrote: > Hi folks, > I'd like your opinion. > > I'm thinking of buying a net5501, installing a SATA drive, and using > Apache on FreeBSD for use on my home LAN. I might even install Squid, > but maybe all this would be too much for this device? > > For just my personal web site, do you think the performance of the > net5501 would be acceptable? Would I have any reliability issues that > I might need to consider? > > Comments? Suggestions? > > Thanks! > > Ed > ___ > Soekris-tech mailing list > Soekris-tech@lists.soekris.com > http://lists.soekris.com/mailman/listinfo/soekris-tech > -- Malcolm HerbertThis brain intentionally m...@mjch.netleft blank ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech
[Soekris] Would a net5501 reliably host a web site?
Hi folks, I'd like your opinion. I'm thinking of buying a net5501, installing a SATA drive, and using Apache on FreeBSD for use on my home LAN. I might even install Squid, but maybe all this would be too much for this device? For just my personal web site, do you think the performance of the net5501 would be acceptable? Would I have any reliability issues that I might need to consider? Comments? Suggestions? Thanks! Ed ___ Soekris-tech mailing list Soekris-tech@lists.soekris.com http://lists.soekris.com/mailman/listinfo/soekris-tech