Re: YASSDQ

2012-07-09 Thread Wojciech Puchar


Notes:

1. SSDs don't necessarily use 4k blocks, some use larger ones. Starting the


All use 4K as it is NTFS default block size and most are sold to be used 
with windoze.



first filesystem partition at 1M works for most of the common values.


Alignment of filesystem cannot be better than it's block size.

3. Swap is tricky with small drives, even trickier if you want to use TRIM. 
Swap files can be used, and then you get TRIM, but see 
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/168544 for a way to dismount 
that swap file before shutdown and an annoying panic.


my solution:

# cat /etc/rc.local
#!/bin/sh
echo creating swapfile
/bin/rm -f /swapfile.tmp
dd if=/dev/zero of=/swapfile.tmp bs=8m seek=1k count=0
/sbin/mdconfig -a -t vnode -u 0 -f /swapfile.tmp || /bin/sh
/bin/chflags nodump /swapfile.tmp
/bin/rm -f /swapfile.tmp
/sbin/swapctl -a /dev/md0


# cat /etc/rc.shutdown.local
#!/bin/sh
echo removing swapfile
/sbin/swapctl -d /dev/md0
/sbin/mdconfig -d -u 0


my partitioning:

# disklabel ada0
# /dev/ada0:
8 partitions:
#  size offsetfstype   [fsize bsize bps/cpg]
  a:  117231408  04.2BSD0 0 0
  c:  117231408  0unused0 0 # raw part, don't edit




99% of the time swap is not needed so doesn't take space.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: YASSDQ

2012-07-09 Thread Bruce Cran

On 09/07/2012 11:31, Wojciech Puchar wrote:
All use 4K as it is NTFS default block size and most are sold to be 
used with windoze.


Apparently the Intel 320 SSDs use an 8KB page/block size.

--
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: YASSDQ

2012-07-09 Thread Arthur Chance

On 07/09/12 13:38, Bruce Cran wrote:

On 09/07/2012 11:31, Wojciech Puchar wrote:

All use 4K as it is NTFS default block size and most are sold to be
used with windoze.


Apparently the Intel 320 SSDs use an 8KB page/block size.



From a Crucial forum, thread about Crucial M4 SSDs, posted by a Crucial 
employee:


[http://forum.crucial.com/t5/Solid-State-Drives-SSD/Page-size-and-erase-block-size-for-M4-64GB-128GB-256GB-models/td-p/64403 
about half way down the page]


 One correction to the information here. The page size is based on 
the  density of the NAND not the process geometry. The 64GB and 128GB 
m4’s  utilize NAND with 4K page sizes and the 256GB and 512GB m4’s 
utilize  NAND with 8K pages.


Looks like larger SSDs have larger block sizes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: YASSDQ

2012-07-09 Thread Warren Block

On Mon, 9 Jul 2012, Wojciech Puchar wrote:


Notes:

1. SSDs don't necessarily use 4k blocks, some use larger ones. Starting the


All use 4K as it is NTFS default block size and most are sold to be used with 
windoze.


No.  For example, some of the Crucial M4 drives are 4K, some are 8K.


first filesystem partition at 1M works for most of the common values.


Alignment of filesystem cannot be better than it's block size.


1M is semi-standard and aligns with all expected block sizes and erase 
block sizes.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: YASSDQ

2012-07-09 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Jul  9 07:40:35 2012
 Date: Mon, 09 Jul 2012 13:38:57 +0100
 From: Bruce Cran br...@cran.org.uk
 To: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl
 Cc: freebsd-questions@freebsd.org, Graham Bentley ad...@cpcnw.co.uk
 Subject: Re: YASSDQ

 On 09/07/2012 11:31, Wojciech Puchar wrote:
  All use 4K as it is NTFS default block size and most are sold to be 
  used with windoze.

 Apparently the Intel 320 SSDs use an 8KB page/block size.

Don't attempt to confuse Wociech with facts.  He knows more about everything
than anybody.  And his opinions are the only correct way to do anything.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


YASSDQ

2012-07-08 Thread Graham Bentley

Hi I have put together a little experimental FreebSD 9.0
box which comprises of ;

http://www.cartft.com/catalog/il/934
http://www.overclockers.co.uk/showproduct.php?prodid=HS-023-ZA
2GB RAM and a Sandisk SDSA3BD-054G 8GB SSD

The idea is a silent system I can tinker on - nothing serious. 
I chose the guided install and accepted the default partition 
/ fs layout. I thought the things where running a bit slow and 
changed from 'native' in the BIOS to 'legacy' SATA and things 
seem a bit quicker now however I am wondering if I am getting 
the bext out of the SDD? I have read a little about 'aligning' and 
4k sectors I think? If its running ok should I leave as is? Or do 
you have tunning advice for me?


Thanks! 
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: YASSDQ

2012-07-08 Thread Warren Block

On Sun, 8 Jul 2012, Graham Bentley wrote:


Hi I have put together a little experimental FreebSD 9.0
box which comprises of ;

http://www.cartft.com/catalog/il/934
http://www.overclockers.co.uk/showproduct.php?prodid=HS-023-ZA
2GB RAM and a Sandisk SDSA3BD-054G 8GB SSD

The idea is a silent system I can tinker on - nothing serious. I chose the 
guided install and accepted the default partition / fs layout. I thought the 
things where running a bit slow and changed from 'native' in the BIOS to 
'legacy' SATA and things seem a bit quicker now however I am wondering if I 
am getting the bext out of the SDD? I have read a little about 'aligning' and 
4k sectors I think? If its running ok should I leave as is? Or do you have 
tunning advice for me?


The default install of 9.0-RELEASE does not align to 4k sectors.
Depending on the SSD, this might cost a little or a lot of performance. 
The example gpart commands I posted in the Format a USB flash drive 
thread create aligned partitions:

http://lists.freebsd.org/pipermail/freebsd-questions/2012-July/243190.html

Notes:

1. SSDs don't necessarily use 4k blocks, some use larger ones. 
Starting the first filesystem partition at 1M works for most of the 
common values.


2. As Bruce Cran pointed out, TRIM can be enabled with UFS.  But make 
sure the SSD supports it first.


3. Swap is tricky with small drives, even trickier if you want to use 
TRIM.  Swap files can be used, and then you get TRIM, but see 
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/168544 for a way to 
dismount that swap file before shutdown and an annoying panic.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org