Re: FreeBSD on SSD on ASUS P5KPL-C
On Sat, 24 Nov 2012, Matthias Apitz wrote: El día Wednesday, November 21, 2012 a las 09:19:24PM -0700, Warren Block escribió: On Wed, 21 Nov 2012, Warren Block wrote: The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Hi Warren, When the page is opened with konqueror of KDE 3.5.10 the JS functions for Table Of Content generator are generating in an endless loop the links. That's... unexpected. It's a stock AsciiDoc-generated feature. The PDF version is at: http://www.wonkity.com/~wblock/docs/pdf/disksetup.pdf___ 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: FreeBSD on SSD on ASUS P5KPL-C
El día Wednesday, November 21, 2012 a las 09:19:24PM -0700, Warren Block escribió: On Wed, 21 Nov 2012, Warren Block wrote: The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Hi Warren, When the page is opened with konqueror of KDE 3.5.10 the JS functions for Table Of Content generator are generating in an endless loop the links. HIH matthias -- Matthias Apitz | /\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ 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: FreeBSD on SSD on ASUS P5KPL-C
Thank you very much for your work on this. I have found this conversation and your article very informative. I've already installed W7 on my SSD but I let the installation program create the windows (MBR) partition. I'm going to install FreeBSD 9.1 as soon as it is ready so I want to ask if it is straight forward if I follow your instructions for creating the bsd slice and partitions, or if I need to check anything in order to get the correct alignment? Thanks /Leslie Warren Block skrev 2012-11-22 05:19: On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html ___ 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 ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On 22/11/2012 14:49, Warren Block wrote: On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Something I meant to ask before - is there any benefit to following the steps described in http://www.aisecure.net/2012/01/16/rootzfs/ Abbreviated the steps are - gpart add -t freebsd-zfs -l disk0 ada0 gnop create -S 4096 /dev/gpt/disk0 zpool create zroot /dev/gpt/disk0.nop zpool export zroot gnop destroy /dev/gpt/disk0.nop zpool import zroot The step of using gnop is meant to trick zfs into believing the disk has 4K sector size to improve performance, which I would think zfs would be able to figure out by talking to the disk. Does partitioning hide the sector size or would the step of aligning the partition start to a 4k sector unhide the 4k size? Or are these steps just a waste of time? ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Fri, 23 Nov 2012, Shane Ambler wrote: On 22/11/2012 14:49, Warren Block wrote: On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html Something I meant to ask before - is there any benefit to following the steps described in http://www.aisecure.net/2012/01/16/rootzfs/ My guide is based on using UFS. ZFS or other filesystems will also benefit from block alignment, but the methods to get there can be different. The step of using gnop is meant to trick zfs into believing the disk has 4K sector size to improve performance, which I would think zfs would be able to figure out by talking to the disk. Unless ZFS is put on a bare, unpartitioned disk, configuration for performance is better left to the user. It's a pain to correct automatic configs when they guess wrong. Does partitioning hide the sector size or would the step of aligning the partition start to a 4k sector unhide the 4k size? Or are these steps just a waste of time? It's not about hiding the device's native block size, it's about getting the filesystem to do aligned I/O so the device can just read or write a single 4K block instead of part of one and part of another. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Tue, 20 Nov 2012, Snow Mountains wrote: 2012/11/20 Warren Block wbl...@wonkity.com: On Tue, 20 Nov 2012, Snow Mountains wrote: Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sorry, typo. FreeBSD does not have to be the first slice. # gpart create -s bsd ada2s2 # gpart set -a active -i 1 ada2s2 Hm, still doesn't work. Look: # gpart destroy -F ada2 ada2 destroyed # gpart create -s mbr ada2 ada2 created # gpart bootcode -b /boot/mbr ada2 bootcode written to ada2 # gpart add -t ntfs -b 2048 -s 30g ada2 ada2s1 added # gpart create -s bsd ada2s2 gpart: arg0 'ada2s2': Invalid argument Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. Create the MBR partitioning scheme: # gpart create -s mbr ada2 Add MBR bootcode: # gpart bootcode -b /boot/mbr ada2 Add the Windows 7 partition, forcing it to start at block 2048 because -a is not going to do what is expected for slices because of decades-old CHS stuff: # gpart add -t ntfs -b 2048 -s 30g ada2 Create the FreeBSD slice: # gpart add -t freebsd ada2 # gpart create -s bsd ada2s2 Set this MBR slice active and add FreeBSD bootcode: # gpart set -a active -i 2 ada2 # gpart bootcode -b /boot/boot ada2s2 Add the FreeBSD partitions. -a will work here, aligning the partitions. # gpart add -t freebsd-ufs -a 4k -s 3g ada2s2 # gpart add -t freebsd-ufs -a 4k -s 1g ada2s2 # gpart add -t freebsd-ufs -a 4k ada2s2 Note: can't use GPT labels... since this is MBR. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Wed, 21 Nov 2012, Warren Block wrote: Got a chance to set up a scratch drive and check this. Turns out I left out the step of creating a slice (MBR partition) to hold the FreeBSD partitions. Also, GPT labels cannot be used in an MBR. Fixed below. I will probably add this to my disk setup article because it has come up more than once. The fdisk/bsdlabel section of my disk setup article has been rewritten to use gpart. Feedback welcome. http://www.wonkity.com/~wblock/docs/html/disksetup.html ___ 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: FreeBSD on SSD on ASUS P5KPL-C
2012/11/18 Shane Ambler free...@shaneware.biz: On 18/11/2012 06:49, Snow Mountains wrote: Could you recommend a reliable document on how to do a correct block alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't mention this at all, although I can find a lot of (not quite consistent) advises on the net on how to do it with gpart/newfs. Over the last week there has been a discussion with the subject Advanced Format Drive ? on this list that has been discussing that. If you only just signed up then you can search for it in the mail archives. There is a lot of useful info there, and I also found a lot of useful tips from Warren Block on how to create swap as a file, how to use tmpfs, about noatime etc. However, nowhere I can found anything that could explain me for sure how to do this BEFORE that: I've got 240G Kingston SSD. I want this: win7: ada2s1 ~ 30G empty (probably for experimental little win7 install in the future) freebsd9: ada2s2a ~3G for / ada2s2d ~80G the for /usr (separated for easier backup) ada2s2f ~ the rest for storage How to do this with gpart, respecting 4g alignment etc? Can anybody share the exact commands to achieve this? SergiM ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Mon, 19 Nov 2012, Snow Mountains wrote: 2012/11/18 Shane Ambler free...@shaneware.biz: On 18/11/2012 06:49, Snow Mountains wrote: Could you recommend a reliable document on how to do a correct block alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't mention this at all, although I can find a lot of (not quite consistent) advises on the net on how to do it with gpart/newfs. Over the last week there has been a discussion with the subject Advanced Format Drive ? on this list that has been discussing that. If you only just signed up then you can search for it in the mail archives. There is a lot of useful info there, and I also found a lot of useful tips from Warren Block on how to create swap as a file, how to use tmpfs, about noatime etc. I didn't say anything about noatime, and personally have not done that on SSDs. However, nowhere I can found anything that could explain me for sure how to do this BEFORE that: I've got 240G Kingston SSD. I want this: win7: ada2s1 ~ 30G empty (probably for experimental little win7 install in the future) freebsd9: ada2s2a ~3G for / ada2s2d ~80G the for /usr (separated for easier backup) ada2s2f ~ the rest for storage How to do this with gpart, respecting 4g alignment etc? Can anybody share the exact commands to achieve this? That's 4K. Most of the following is shown in the new Handbook gmirror section: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html Create the MBR partitioning scheme: # gpart create -s mbr ada2 Add MBR bootcode: # gpart bootcode -b /boot/mbr ada2 Add the Windows 7 partition, forcing it to start at block 2048 because -a is not going to do what is expected for slices because of decades-old CHS stuff: # gpart add -t ntfs -b 2048 -s 30g ada2 Create the FreeBSD slice: # gpart create -s bsd ada2s1 Set this slice active and add FreeBSD bootcode: # gpart set -a active -i 1 ada2s1 # gpart bootcode -b /boot/boot ada2s1 Add the FreeBSD partitions. -a will work here, aligning the partitions. # gpart add -t freebsd-ufs -a 4k -l dxrootfs -s 3g ada2s1 # gpart add -t freebsd-ufs -a 4k -l dxvarfs -s 1g ada2s1 # gpart add -t freebsd-ufs -a 4k -l dxusrfsada2s1 Note the use of GPT labels. The dx is just random go-fast letters added because I believe it is a mistake to have duplicate labels and try to keep them all unique. Pick your own. /etc/fstab entries are /dev/gpt/dxrootfs, /dev/gpt/dxvarfs, /dev/gpt/dxusrfs. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
2012/11/19 Warren Block wbl...@wonkity.com: On Mon, 19 Nov 2012, Snow Mountains wrote: 2012/11/18 Shane Ambler free...@shaneware.biz: On 18/11/2012 06:49, Snow Mountains wrote: Could you recommend a reliable document on how to do a correct block alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't mention this at all, although I can find a lot of (not quite consistent) advises on the net on how to do it with gpart/newfs. Over the last week there has been a discussion with the subject Advanced Format Drive ? on this list that has been discussing that. If you only just signed up then you can search for it in the mail archives. There is a lot of useful info there, and I also found a lot of useful tips from Warren Block on how to create swap as a file, how to use tmpfs, about noatime etc. I didn't say anything about noatime, and personally have not done that on SSDs. However, nowhere I can found anything that could explain me for sure how to do this BEFORE that: I've got 240G Kingston SSD. I want this: win7: ada2s1 ~ 30G empty (probably for experimental little win7 install in the future) freebsd9: ada2s2a ~3G for / ada2s2d ~80G the for /usr (separated for easier backup) ada2s2f ~ the rest for storage How to do this with gpart, respecting 4g alignment etc? Can anybody share the exact commands to achieve this? That's 4K. Most of the following is shown in the new Handbook gmirror section: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html Create the MBR partitioning scheme: # gpart create -s mbr ada2 Add MBR bootcode: # gpart bootcode -b /boot/mbr ada2 Add the Windows 7 partition, forcing it to start at block 2048 because -a is not going to do what is expected for slices because of decades-old CHS stuff: # gpart add -t ntfs -b 2048 -s 30g ada2 Create the FreeBSD slice: # gpart create -s bsd ada2s1 Set this slice active and add FreeBSD bootcode: # gpart set -a active -i 1 ada2s1 Warren, great, thank you! Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sergi ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Tue, 20 Nov 2012, Snow Mountains wrote: Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sorry, typo. FreeBSD does not have to be the first slice. # gpart create -s bsd ada2s2 # gpart set -a active -i 1 ada2s2 ___ 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: FreeBSD on SSD on ASUS P5KPL-C
2012/11/20 Warren Block wbl...@wonkity.com: On Tue, 20 Nov 2012, Snow Mountains wrote: Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sorry, typo. FreeBSD does not have to be the first slice. # gpart create -s bsd ada2s2 # gpart set -a active -i 1 ada2s2 Hm, still doesn't work. Look: # gpart destroy -F ada2 ada2 destroyed # gpart create -s mbr ada2 ada2 created # gpart bootcode -b /boot/mbr ada2 bootcode written to ada2 # gpart add -t ntfs -b 2048 -s 30g ada2 ada2s1 added # gpart create -s bsd ada2s2 gpart: arg0 'ada2s2': Invalid argument S. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On Tue, 20 Nov 2012, Snow Mountains wrote: 2012/11/20 Warren Block wbl...@wonkity.com: On Tue, 20 Nov 2012, Snow Mountains wrote: Just one small problem. Here I got this: # gpart create -s bsd ada2s1 gpart: geom 'ada2s1': File exists # gpart set -a active -i 1 ada2s1 gpart: index '1': No such file or directory Expected? Anyway, is it any way to but FreeBSD on something like s2? Sorry, typo. FreeBSD does not have to be the first slice. # gpart create -s bsd ada2s2 # gpart set -a active -i 1 ada2s2 Hm, still doesn't work. Look: # gpart destroy -F ada2 ada2 destroyed # gpart create -s mbr ada2 ada2 created # gpart bootcode -b /boot/mbr ada2 bootcode written to ada2 # gpart add -t ntfs -b 2048 -s 30g ada2 ada2s1 added # gpart create -s bsd ada2s2 gpart: arg0 'ada2s2': Invalid argument I know I've seen that, but can't recall what causes it. You can try retasting before creating the BSD partitions: # true /dev/ada2 # gpart create -s bsd ada2s2 ___ 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: FreeBSD on SSD on ASUS P5KPL-C
2012/11/20 Warren Block wbl...@wonkity.com: I know I've seen that, but can't recall what causes it. You can try retasting before creating the BSD partitions: # true /dev/ada2 # gpart create -s bsd ada2s2 Sorry, no difference: # gpart show ada2 = 63 468862065 ada2 MBR (223G) 63 2016- free - (1M) 2079 62914509 1 ntfs (30G) 62916588 405945540- free - (193G) # true /dev/ada2 # gpart create -s bsd ada2s2 gpart: arg0 'ada2s2': Invalid argument S. ___ 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
FreeBSD on SSD on ASUS P5KPL-C
Hello, I'm about to upgrade hardware on my desktop and to install FreeBSD 9 on it. I have ASUS P5KPL-C and want to buy a SSD or SATA-III 6Gb/s drive for it. Please advise me: * does it make sense to buy SSD drive for a mb that supports 4x SATA 3Gb/s (of couse, expecting a possible future mb upgrade)? * if SSD is capable of working at greater speed, will it simply operate on maximum 3Gb/s on P5KPL-C? * the same question for SATA-III 6Gb/s. Will it simply operate on 3Gb on my mb? * How will FreeBSD 9 behave in such situations? Any special tweaking needed? Thank you very much for your explanations, Sergi M. ___ 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: FreeBSD on SSD on ASUS P5KPL-C
On 17 November 2012 12:26, Snow Mountains snow.mountain...@gmail.com wrote: Hello, I'm about to upgrade hardware on my desktop and to install FreeBSD 9 on it. I have ASUS P5KPL-C and want to buy a SSD or SATA-III 6Gb/s drive for it. Please advise me: * does it make sense to buy SSD drive for a mb that supports 4x SATA 3Gb/s (of couse, expecting a possible future mb upgrade)? If you want SSD, by all means. For me the price/benefit ration is definitely not there. For you, perhaps different. * if SSD is capable of working at greater speed, will it simply operate on maximum 3Gb/s on P5KPL-C? Yes, it will simply use the slower speed of the controller. * the same question for SATA-III 6Gb/s. Will it simply operate on 3Gb on my mb? Yes. * How will FreeBSD 9 behave in such situations? Any special tweaking needed? I wouldn't expect any special behaviour, though you need to take care with block alignment. Perhaps in the future FreeBSD will have a blocksize/erase-blocksize aware formatting partitioning tool(s), but at the moment, you need to make sure those are correctly aligned if you want good performance from 4k blocksize drives ( SSDs will probably still need to be aligned to whatever the erase block size is). Good luck. -- -- ___ 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: FreeBSD on SSD on ASUS P5KPL-C
2012/11/17 ill...@gmail.com ill...@gmail.com: On 17 November 2012 12:26, Snow Mountains snow.mountain...@gmail.com wrote: * How will FreeBSD 9 behave in such situations? Any special tweaking needed? I wouldn't expect any special behaviour, though you need to take care with block alignment. Perhaps in the future FreeBSD will have a blocksize/erase-blocksize aware formatting partitioning tool(s), but at the moment, you need to make sure those are correctly aligned if you want good performance from 4k blocksize drives ( SSDs will probably still need to be aligned to whatever the erase block size is). illoai, thank you for the answer! I'll certainly go with SSD in that case. Could you recommend a reliable document on how to do a correct block alignment for new FreeBSD 9 install? FreeBSD Handbook doesn't mention this at all, although I can find a lot of (not quite consistent) advises on the net on how to do it with gpart/newfs. Sergi ___ 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