<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 18/08/2012 23.47, Matias Seco wrote:<br>
</div>
<blockquote cite="mid:fc05af13c765.50302977@sorint.it" type="cite">Nuovo
quesito :)
<div>Sempre in giro su internet^^, ho letto che per sfruttare al
meglio un SSD bisogna seguire i seguenti passi:</div>
<div><br>
</div>
<div>1. Formattazione disco con Allineazione appropiata</div>
<div>2. Creazione file-system, anche questo settando correttamente
l'allineamento</div>
<div><br>
</div>
<div>Per il 1° ho visto che strumento come gdisk o gparted
effettuano automaticamente questa operazione</div>
<div>Il 2° l'ho letto in giro: ma non lo dovrebbe fare
automaticamente ext4?</div>
<div><br>
</div>
</blockquote>
<br>
e questi i miei test !disco : ssd Corsair force series 3 120Gb -
SATA 6Gb/s •Max Sequential Read/Write (using ATTO Disk Benchmark):
550 MB/s sequential read — 520 MB/s sequential write •Max Random 4k
Write (using IOMeter 08): 85k IOPS (4k aligned)<br>
<br>
========<br>
1<br>
========<br>
<br>
<br>
formattato con gparted xfs 120gb<br>
----------------------<br>
2 mib free<br>
111.79gib<br>
3.46mib free<br>
<br>
sudo hdparm -t /dev/sdh<br>
<br>
/dev/sdh:<br>
Timing buffered disk reads: 930 MB in 3.01 seconds = 309.42 MB/sec<br>
server@server-System-Product-Name:/media/155d3571-ecd4-46fe-bd94-3277a112081a/cf$
sudo hdparm -t /dev/sdh<br>
<br>
/dev/sdh:<br>
Timing buffered disk reads: 922 MB in 3.00 seconds = 306.99 MB/sec<br>
server@server-System-Product-Name:/media/155d3571-ecd4-46fe-bd94-3277a112081a/cf$
sudo hdparm -t /dev/sdh<br>
<br>
/dev/sdh:<br>
Timing buffered disk reads: 874 MB in 3.00 seconds = 291.03 MB/sec<br>
<br>
<br>
========<br>
2<br>
========<br>
Link:
<a class="moz-txt-link-freetext" href="http://www.ocztechnologyforum.com/forum/showthread.php?77769-A-Simple-How-To-on-Partitioning-and-Alignment-on-GNU-Linux-using-fdisk">http://www.ocztechnologyforum.com/forum/showthread.php?77769-A-Simple-How-To-on-Partitioning-and-Alignment-on-GNU-Linux-using-fdisk</a>
[^]<br>
<br>
<br>
sudo fdisk -H 32 -S 32 /dev/sdh<br>
p<br>
n<br>
p<br>
1<br>
2048<br>
+232783871<br>
w<br>
<br>
sudo hdparm -t /dev/sdh<br>
<br>
/dev/sdh:<br>
Timing buffered disk reads: 1090 MB in 3.00 seconds = 362.93 MB/sec<br>
server@server-System-Product-Name:/$ sudo hdparm -t /dev/sdh<br>
<br>
<br>
========<br>
3<br>
========<br>
<br>
sudo fdisk -H 32 -S 32 /dev/sdd<br>
p<br>
n<br>
p<br>
1<br>
4096<br>
+232783871<br>
w<br>
<br>
sudo hdparm -t /dev/sdd<br>
<br>
/dev/sdd:<br>
Timing buffered disk reads: 890 MB in 3.01 seconds = 296.15 MB/sec<br>
server@server-System-Product-Name:~$ sudo hdparm -t /dev/sdd<br>
<br>
<br>
========<br>
4<br>
========<br>
sudo dd if=/dev/zero of=/dev/sdd count=1 bs=1k<br>
sudo fdisk -H 224 -S 56 /dev/sdd<br>
p<br>
n<br>
p<br>
1<br>
2048<br>
+232783871<br>
w<br>
<br>
sudo hdparm -t /dev/sdd<br>
<br>
/dev/sdd:<br>
Timing buffered disk reads: 860 MB in 3.00 seconds = 286.43 MB/sec<br>
<br>
<br>
========<br>
5<br>
========<br>
<br>
hdparm -i /dev/sdd<br>
sudo gparted -> delete all partition<br>
sudo apt-get install lvm2 dmsetup mdadm<br>
sudo pvcreate --dataalignmentoffset 7s /dev/sdd<br>
sudo pvcreate --dataalignmentoffset 7s /dev/sdd<br>
sudo vgcreate wd2tsata /dev/sdd<br>
sudo lvcreate --name vm_storage --size 111G wd2tsata<br>
<br>
<br>
sudo mkfs.xfs -b size=4096 -s size=4096 -N /dev/wd2tsata/vm_storage<br>
meta-data=/dev/wd2tsata/vm_storage isize=256 agcount=4,
agsize=7274496 blks<br>
= sectsz=4096 attr=2, projid32bit=0<br>
data = bsize=4096 blocks=29097984, imaxpct=25<br>
= sunit=0 swidth=0 blks<br>
naming =version 2 bsize=4096 ascii-ci=0<br>
log =internal log bsize=4096 blocks=14208, version=2<br>
= sectsz=4096 sunit=1 blks, lazy-count=1<br>
realtime =none extsz=4096 blocks=0, rtextents=0<br>
<br>
<br>
sudo hdparm -t /dev/sdd<br>
dev/sdd:<br>
Timing buffered disk reads: 896 MB in 3.01 seconds = 298.13 MB/sec<br>
server@server-System-Product-Name:~$ sudo hdparm -t /dev/sdd<br>
<br>
<br>
sudo hdparm -t /dev/dm-0<br>
/dev/dm-0:<br>
Timing buffered disk reads: 842 MB in 3.01 seconds = 280.16 MB/sec<br>
<br>
<br>
<br>
<br>
<br>
<blockquote cite="mid:fc05af13c765.50302977@sorint.it" type="cite">
<div>Note: mi interessava questo particolarmente, sapendo che ci
sono poi altri elementi (trim, distribuzione filesystem)</div>
<div><br>
</div>
<div>Salut</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
--
Sito BgLUG: <a class="moz-txt-link-freetext" href="http://www.bglug.it">http://www.bglug.it</a>
Mailing list: <a class="moz-txt-link-freetext" href="http://lists.linux.it/listinfo/bglug">http://lists.linux.it/listinfo/bglug</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
HARDELETTROSOFT di Manzoni Giovanni
VAT. IT03473560161 <a class="moz-txt-link-freetext" href="http://www.hardelettrosoft.com">http://www.hardelettrosoft.com</a>
Viale Dei Caduti 2/bis, Almenno San Salvatore 24031 (BG) ITALY
Mobile: 392 94.67.550</pre>
</body>
</html>