Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 09:12:40 -0400
From:      Steve Bertrand <steve@ibctech.ca>
To:        Howard Jones <howard.jones@network-i.net>
Cc:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, FreeBSD-Questions@freebsd.org, Graeme Dargie <arab@tangerine-army.co.uk>, Valentin Bud <valentin.bud@gmail.com>
Subject:   Re: FreeBSD & Software RAID
Message-ID:  <4A1BEAC8.6030505@ibctech.ca>
In-Reply-To: <4A1BB15C.40300@network-i.net>
References:  <4A1AA3DC.5020300@network-i.net>	<01FB8F39BAD0BD49A6D0DA8F7897392956C7@Mercury.galaxy.lan.lcl>	<139b44430905250937u3410ac24g1f0b9f89a0d51f22@mail.gmail.com>	<20090525165618.GB8441@Grumpy.DynDNS.org>	<alpine.BSF.2.00.0905251907460.39949@wojtek.tensor.gdynia.pl>	<20090525174818.GA32121@Grumpy.DynDNS.org>	<alpine.BSF.2.00.0905251954230.40402@wojtek.tensor.gdynia.pl> <4A1BB15C.40300@network-i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms090209030801000301080008
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Howard Jones wrote:
> Wojciech Puchar wrote:
>> you are right. you can't be happy of warm house without getting really
>> cold some time :)
>>
>> that's why it's excellent that ZFS (and few other things) is included
>> in FreeBSD but it's COMPLETELY optional.
>>
> Well, I switched from the heater that doesn't work and is poorly
> documented (gvinum) to the one that does and  is (zfs, albeit mostly
> documented by Sun), and so far I am warm :-)
> 
> Once I'd increased kmem, at least. I did get a panic before that, but
> now I am shuffling data happily and slightly faster than gvinum did, and
> memory has levelled off at about 160MB for zfs. I'll be keeping my
> previous hardware RAID in one piece for a little while though, I think,
> just in case! (old Adaptec card with a 2TB limit on containers).

I moved my AMANDA tapeless backup system to ZFS well over a year ago.
It's got four 500GB SATA drives.

At first, it would panic frequently sometime during the backup. The
backups peak at ~400Mbps of network traffic. I adopted the following
script to write out the memory usage during the backup, so I could
better tune the system (sorry, I can't recall where I found this code snip):

#!/bin/sh

TEXT=`/sbin/kldstat | /usr/bin/awk 'BEGIN {print "16i 0";} NR>1 \
{print toupper($4) "+"} END {print "p"}' | dc`

DATA=`/usr/bin/vmstat -m | sed -Ee \
'1s/.*/0/;s/.* ([0-9]+)K.*/\1+/;$s/$/1024*p/' | dc`

TOTAL=$((DATA + TEXT))
DATE=`/bin/date | awk '{print $4}'`

/bin/echo $DATE `/bin/echo $TOTAL | \
/usr/bin/awk '{print $1/1048576}'` >> /home/steve/mem.usage

Cronned every minute, I'd end up with a file like this:

19:16:01 500.205
19:17:02 485.699
19:18:01 474.305
19:19:01 473.265
19:20:01 471.874
19:21:02 471.94

...the next day, I'd be able to review this file to see what the memory
 usage was at the time of the panic/reboot.

I found that:

vm.kmem_size="1536M"
vm.kmem_size_max="1536M"

made the system extremely stable, and since then:

amanda# uptime
 9:01AM  up 81 days, 17:06,

I'm about to upgrade the system to -STABLE today...

Steve

--------------ms090209030801000301080008
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII/zCC
AtowggJDoAMCAQICEEs5xg/J3t77QWJ4SatV1HcwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA5MDUwNzIzMTYxMFoX
DTEwMDUwNzIzMTYxMFowQjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0G
CSqGSIb3DQEJARYQc3RldmVAaWJjdGVjaC5jYTCC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4DAgcwDQYIKoZIhvcNAwICASgwgYUGCSsGAQQBgjcQBDF4MHYwYjEL
MAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAq
BgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAhBLOcYPyd7e+0Fi
eEmrVdR3MIGHBgsqhkiG9w0BCRACCzF4oHYwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRo
YXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBG
cmVlbWFpbCBJc3N1aW5nIENBAhBLOcYPyd7e+0FieEmrVdR3MA0GCSqGSIb3DQEBAQUABIIB
AJPkJZrmyQXzqAou51HSH+P69nKom5YBxzuVBNv5TX9ksr/WsQV0pWm8LX0nGFbkOnaFs2jG
uimMQx8XyZ3eIXL3Ycx2x9fr/mHIa5F1wYYe7u0BqE1+eLeTPmTmkOU+Tqfr5PzYEVI+VgGc
r6MCqS/Ygtgm5m59fQYDgvAvTSWjXYiHVGurV3j2ULvbvKLpG64LEia6KMachX1LHVdfwXRB
7evZ0gj8rQma04QD0swuVrUmRX8BODrX1g/VnvuOG4SCDe2vkFjT0BBK8dfe0rmoWcIJ9MYX
cvBP6JNaZDy8728C/V8ohe9JcebuFcNegWn4wQ+Q84WWuXiZoK/CfjUAAAAAAAA=
--------------ms090209030801000301080008--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1BEAC8.6030505>