Skip to content

Tag Archives: FreeBSD

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


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


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)


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: – download. I chose beta 0.6.3. Unzip it, and take a look at the […]

Installing php5.2-FPM on FreeBSD


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


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


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


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


I’ve already compiled a custom kernel that enables polling. I’m now following in : Luckily, I had already built samba with AIO support. In : In : in : See also 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)


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


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.