[bglug] Configurazione SSD per Linux
Giovanni
manzoni@hardelettrosoft.com
Dom 19 Ago 2012 10:30:37 CEST
On 18/08/2012 23.47, Matias Seco wrote:
> Nuovo quesito :)
> Sempre in giro su internet^^, ho letto che per sfruttare al meglio un
> SSD bisogna seguire i seguenti passi:
>
> 1. Formattazione disco con Allineazione appropiata
> 2. Creazione file-system, anche questo settando correttamente
> l'allineamento
>
> Per il 1° ho visto che strumento come gdisk o gparted effettuano
> automaticamente questa operazione
> Il 2° l'ho letto in giro: ma non lo dovrebbe fare automaticamente ext4?
>
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)
========
1
========
formattato con gparted xfs 120gb
----------------------
2 mib free
111.79gib
3.46mib free
sudo hdparm -t /dev/sdh
/dev/sdh:
Timing buffered disk reads: 930 MB in 3.01 seconds = 309.42 MB/sec
server@server-System-Product-Name:/media/155d3571-ecd4-46fe-bd94-3277a112081a/cf$
sudo hdparm -t /dev/sdh
/dev/sdh:
Timing buffered disk reads: 922 MB in 3.00 seconds = 306.99 MB/sec
server@server-System-Product-Name:/media/155d3571-ecd4-46fe-bd94-3277a112081a/cf$
sudo hdparm -t /dev/sdh
/dev/sdh:
Timing buffered disk reads: 874 MB in 3.00 seconds = 291.03 MB/sec
========
2
========
Link:
http://www.ocztechnologyforum.com/forum/showthread.php?77769-A-Simple-How-To-on-Partitioning-and-Alignment-on-GNU-Linux-using-fdisk
[^]
sudo fdisk -H 32 -S 32 /dev/sdh
p
n
p
1
2048
+232783871
w
sudo hdparm -t /dev/sdh
/dev/sdh:
Timing buffered disk reads: 1090 MB in 3.00 seconds = 362.93 MB/sec
server@server-System-Product-Name:/$ sudo hdparm -t /dev/sdh
========
3
========
sudo fdisk -H 32 -S 32 /dev/sdd
p
n
p
1
4096
+232783871
w
sudo hdparm -t /dev/sdd
/dev/sdd:
Timing buffered disk reads: 890 MB in 3.01 seconds = 296.15 MB/sec
server@server-System-Product-Name:~$ sudo hdparm -t /dev/sdd
========
4
========
sudo dd if=/dev/zero of=/dev/sdd count=1 bs=1k
sudo fdisk -H 224 -S 56 /dev/sdd
p
n
p
1
2048
+232783871
w
sudo hdparm -t /dev/sdd
/dev/sdd:
Timing buffered disk reads: 860 MB in 3.00 seconds = 286.43 MB/sec
========
5
========
hdparm -i /dev/sdd
sudo gparted -> delete all partition
sudo apt-get install lvm2 dmsetup mdadm
sudo pvcreate --dataalignmentoffset 7s /dev/sdd
sudo pvcreate --dataalignmentoffset 7s /dev/sdd
sudo vgcreate wd2tsata /dev/sdd
sudo lvcreate --name vm_storage --size 111G wd2tsata
sudo mkfs.xfs -b size=4096 -s size=4096 -N /dev/wd2tsata/vm_storage
meta-data=/dev/wd2tsata/vm_storage isize=256 agcount=4, agsize=7274496 blks
= sectsz=4096 attr=2, projid32bit=0
data = bsize=4096 blocks=29097984, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=14208, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
sudo hdparm -t /dev/sdd
dev/sdd:
Timing buffered disk reads: 896 MB in 3.01 seconds = 298.13 MB/sec
server@server-System-Product-Name:~$ sudo hdparm -t /dev/sdd
sudo hdparm -t /dev/dm-0
/dev/dm-0:
Timing buffered disk reads: 842 MB in 3.01 seconds = 280.16 MB/sec
> Note: mi interessava questo particolarmente, sapendo che ci sono poi
> altri elementi (trim, distribuzione filesystem)
>
> Salut
>
>
> --
> Sito BgLUG: http://www.bglug.it
> Mailing list: http://lists.linux.it/listinfo/bglug
--
HARDELETTROSOFT di Manzoni Giovanni
VAT. IT03473560161 http://www.hardelettrosoft.com
Viale Dei Caduti 2/bis, Almenno San Salvatore 24031 (BG) ITALY
Mobile: 392 94.67.550
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.linux.it/pipermail/bglug/attachments/20120819/f02326b2/attachment.htm>
Maggiori informazioni sulla lista
bglug