Vanja’s Lolz

Categories

Latest News

Monthly archives


Search




ZFS Compression

Damn it ZFS is being weird!

When I have compression=on (or lzjb) writing files into the pool doesn’t change the pool usage statistics!
[code]
(while running “tar | ssh zfsmachine” on another machine)
vanjab@boss /pool/software/import $ zfs list -r pool > ~/923.txt
(10 mins later)
vanjab@boss /pool/software/import $ zfs list -r pool > ~/933.txt
vanjab@boss ~ $ diff 923.txt 933.txt
vanjab@boss ~ $
[/code]
What’s weird is that I then turned compression off, and the statistics started updating properly.

I’ve checked the folder and the files are appearing and they have file sizes.
[code]
vanjab@boss /pool/software/import $ du -sh
508M .
[/code]
This is 508mb which was transferred while i had compression off. I turned compression back on and its been stagnant again.

But…
[code]
vanjab@boss /pool/software/import/Mac/Core $ ls -lh
total 508M
-rwxr-xr-x 1 vanjab users [b]309M[/b] Aug 31 2007 MacOSXUpdCombo10.4.9Intel.dmg
-rwxr-xr-x 1 vanjab users [b]344M[/b] Feb 11 2008 MacOSXUpdCombo10.5.2.dmg
-rwxr-xr-x 1 vanjab users [b]531M[/b] May 28 11:08 MacOSXUpdCombo10.5.3.dmg
[/code]
What the hell gives?

[code]
vanjab@boss /pool/software/import $ zfs list pool/software/import
NAME USED AVAIL REFER MOUNTPOINT
pool/software/import 508M 1.47T 508M /pool/software/import
vanjab@boss /pool/software/import $ mkfile 5g test
vanjab@boss /pool/software/import $ zfs list pool/software/import
NAME USED AVAIL REFER MOUNTPOINT
pool/software/import 508M 1.47T 508M /pool/software/import
vanjab@boss /pool/software/import $ ls -hl
total 19K
..
-rw——- 1 vanjab users 5.0G Aug 13 09:38 test
[/code]

Edit: Turns out that my source machine (ubuntu running in a VM on WinXP - required because WinXP doesn’t support the new ntfs format of WHS drives) has just been sending 0s. Some of you might know that 0s compress pretty damn well…

Posted by admin Posted in: Uncategorized No Comments » August 2008


Tidbits

Solaris is awesome.

Why doesn’t OSX ssh accept ^C and ^Z?

Compiling packages and managing dependencies is a huge pain with out a decent package manager.

For some reason, zfs set compression=on pool will stop the zfs list usage going up even when I’m copying files in. That’s a bit odd.

Posted by admin Posted in: Uncategorized No Comments » August 2008


Square Melon Desktop

Screenie

The terminal is visor, an awesome drop down quake console terminal (bound to command + escape)
http://www.apple.com/downloads/macosx/unix_open_source/visor.html

I’m using a SIMBL plugin called TerminalColours to fix the colour scheme. The old terminal looked atrocious on black, this makes it actually usable.
http://blog.infinitered.com/entries/show/6

The green login prompt is just a PS1 in ~\.bash_profile
export PS1=’\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ‘
(stolen from gentoo linux)

Folders are actually an icon pack (I used candybar.app for this) called sticker icons system.
http://iconfactory.com/freeware/preview/stkr

There are a few useful addon packs with that theme if you’re interested

ps. Quick launch thing? I think you mean Quicksilver, launchy or [linux equivalent]?

Posted by admin Posted in: Uncategorized No Comments » July 2008


I’m on dropbox

Yeah, it looks pretty sweet.
Bit of a cutdown version of Mesh Live.
Drop box is cool because it has mac AND windows integration (something Live doesn’t have yet…), but Mesh is cool because it promises so much more than just simple file synchronisation.

5 gigabytes of more, to be exact: Drop box only has 2gb atm.

Then again, drop box lets you drop things in a public folder for sharing, very handy for quick uploads!

Too bad I already have skitch and my webhost for that…

Hope someone makes a linux terminal client so i can back up my… .IVA files…. yes.

Dropbox

Posted by admin Posted in: Uncategorized No Comments » July 2008


10.5.4

AirPort

Addresses AirPort reliability issues with 5GHz networks.

Well that explains things. I knew there was something funny going on with my airport express, but didn’t link it to the 5ghz setting. Being able to run my wireless network on 5ghz is fantastic, I can avoid the annoying neighbourhood networks AND I can run a second wireless network at the same time (on the old 2.4ghz frequency) for awesome coverage, speed and compatibility.

Posted by admin Posted in: Uncategorized No Comments » July 2008


Guitar Hero: Update

Holy crap, look at that!
Gtar
It’s a bit hard to see in this pic, but the touch sensitive frets are made from pure awesomenesium.

Posted by admin Posted in: Uncategorized No Comments » June 2008


Mouse Acceleration Tray Program

I wrote a small program for giggles in C# .net 2.0 that makes the Mouse Acceleration parameter from the control panel (aka ‘Mouse precision’) viewable and editable from the taskbar. Double click to bring the window up. Single click to toggle. Hides to tray when it loses focus. Orange for on, blue for off.

Mouse Acceleration Tray Application

Read the rest of this entry »

Posted by admin Posted in: C# No Comments » June 2008


Exams

Ugh, Software Engineering exams are always :psyduck: but this last one takes the cake.

Their Q: What are the steps involved in a company getting iso 9000 certified?

My A:
step 1: Apply for ISO 9000 certification
step 2: ???
step 3: Profit! from iso 9000 certification

Posted by admin Posted in: Uncategorized 1 Comment » June 2008


XNA is kind of cool

Exams are upon me and in my endless attempts to avoid study I’ve decided to take up XNA again. Last time I tried I struggled to come to terms with C# and the ContentPipeline at the same time. It was tricky because at the time, 1.0 had just come out and the net was filled with articles about the beta. This time around I attempted to use 3.0 and all the example projects were in 2.0. After some mucking around, I decided to ditch vs2008+xna3.0 and just go with what everyone was using: xna2.0 with VC# express :)

Its a pretty cool system. Last night I made a playable pong game in just a few hours with out any terrible object orientation problems (always happens), and with out any serious initialisation code. Its a great system for basic sprite based games. I’m hoping that next time I mess with it they have a system for spriteanimation like SDL.net does.

Next chance I get (probably tomorrow instead of SPD study…) I’ll attempt to recreate the classic 3D pong game, with the intention of first learning some simple 3D (I know the theory from class, but I never put it into practice!) and then putting my awesome Computer Communications skills into making it a multiplayer game. It really is an awesome game, but versing the computer just gets a tad boring.

Anyway, with out further ado, my pong game:
Pong 1.0
Pong Source

Posted by admin Posted in: C#, Uncategorized, XNA, games No Comments » June 2008


Seven easy examples of the YUI Panel Widget

Seven easy examples of the YUI Panel Widget:
Well this is just incredibly fancy! Maybe I’ll add some javascript to my site…

Click on the “Panel XXX” links for some impressive stuff.

Posted by admin Posted in: Uncategorized No Comments » May 2008


« Previous Entries