Skip to content

Tag Archives: FreeBSD

Putting freebsd /tmp and /var on a memory disk (md)

14-Feb-11

I’ve installed a FreeBSD system using gmirror onto a couple of USB drives. I’ve noticed that there’s a considerable lag when I’m doing certain things (running for example). I’ve narrowed it down to the and file systems. These two file systems get written to often during normal system operation. I’ve recently aleviated this problem using […]

Partitioning for ZFS

31-Jan-11

Have 3 drives: 1.5 TB WD15EARS, 1 TB Fantom Green (eSATA), 2 TB WD20EARS. First, did a: server# gpart add -b 2048 -s 2929865452 -t freebsd-zfs -l WD15EARS ada0 ada0p1 added server# gpart add -b 2048 -s 1953113452 -t freebsd-zfs -l FANTOM1TB ada1 ada1p1 added server# gpart add -b 2048 -s 3906617452 -t freebsd-zfs -l […]

Installing FreeBSD from USB (created using Windows)

05-Sep-10

Be careful. You’re creating a FreeBSD boot image using Windows. It’s sometimes difficult to see which hard disk you’re writing to. See here: Writing FreeBSD memstick.img to a USB drive in Windows « Koitsu’s Blog Download dd for Windows here: chrysocome.net – download. I chose beta 0.6.3. Unzip it, and take a look at the […]

Installing php5.2-FPM on FreeBSD

03-May-10

I’d rather run nginx and PHP5-FPM on my FreeBSD machine (to server Ampache). I’m not sure if this is possible, but I figured it’s worth a try. The idea is to use less memory and speed things up. apparently, when you use mod_php in Apache, it means that Apache loads php for every request. It’s […]

Re-labeling my ZFS devices with glabel

06-Apr-10

As I stated before, I wanted to move the underlying devices in my ZFS pool to glabel-based naming. To do so, I did the following 3 commands: Then, doing a yields: When the resilvering of is done, I’ll do and in a similar manner. This way, I don’t have to plug the USB drives into […]

Adding cache device to ZFS

04-Apr-10

I went ahead and bought this USB stick to put in the back of my Portwell machine. The idea is to use it as a device cache to speed up my ZFS tank. Based on this post by Alexander Leidinger, it should reduce latency (when data is in the cache), but not otherwise. I was […]

Horrendous FreeBSD bonniee++ latency

16-Mar-10

On my ZFS tank: On the SATA internal hard drive: Thought maybe that automatic ZFS snapshots were getting in the way. But no: Test with : ——-Sequential Output——–—Sequential Input––Random– -Per Char-–Block—-Rewrite–-Per Char-–Block—–Seeks— MachineMBK/sec%CPUK/sec%CPUK/sec%CPUK/sec%CPUK/sec%CPU/sec%CPU fbsd8192869834.71201714.0805012.91782864.23848325.7 54.5 1.6 Be the first to like. Like Unlike

Tuning FreeBSD for Samba network performance

16-Mar-10

I’ve already compiled a custom kernel that enables polling. I’m now following http://forums.freebsd.org/showthread.php?t=9187: in : Luckily, I had already built samba with AIO support. In : In : in : See also http://www.psc.edu/networking/projects/tcptune/. Nuts. Still topping out at 11 MB/s. Wonder if it’s the disk, or if it’s the Windows 7 machine that I’m using […]

Archiving syslog (dmesg)

09-Mar-10

I’m about to build a FreeBSD kernel, so I decided to keep track of my boot-up console messages. I ran the following: (Replace with a real email address.) Be the first to like. Like Unlike

Replaced my 250GB hard drive with a 1TB hard drive

25-Feb-10

the replacement 1 TB Hitachi arrived. So, I decided to take out the 250 GB hard drive and replace that slice with the 1 TB Hitachi.