Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/03/2013, à 22:13

Suntse

[résolu]Trim sur ssd

bonsoir j'ai linux mint 14.1 et je me demander si il fallait activer une commande pour trim ?

j'ai modifier le fichier fstab c'est suffisant ?

ext4    noatime,discard,errors=remount-ro 0       1

Dernière modification par Suntse (Le 09/03/2013, à 10:57)

Hors ligne

#2 Le 08/03/2013, à 22:51

cooljo

Re : [résolu]Trim sur ssd

Bonsoir,

trim
voir le paragraphe 5.2 et la commande indiquée: sudo hdparm -I /dev/sda

cordialement,


(nov-2017) Assus ROG GL553VD  Intel® Core™ i7-7700HQ 2.80 GHZ x4,  Mv 8Go, SSD 250Go Samsung S830 (ext 4), NVIDIA® GeForce® GTX™ 1050, Linux Mint 20.2, Cinnamon 64bits
Imprimante HP 3520
(oct-2021) Asus E410MA Vivobook Linux Mint 20.2 Cinnamon 64bits
'' L'instabilité est nécessaire pour progresser si on reste sur place, on recule. "

Hors ligne

#3 Le 09/03/2013, à 00:12

Suntse

Re : [résolu]Trim sur ssd

bonsoir merci de ta réponse cela me mets ceci  je pense donc que c'est ok

/dev/sda:

ATA device, with non-removable media
	Model Number:       Samsung SSD 840 Series                  
	Serial Number:      S14GNEACB43221D     
	Firmware Revision:  DXT06B0Q
	Media Serial Num:   00000000000000000000
	Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
	Used: unknown (minor revision code 0x0039) 
	Supported: 9 8 7 6 5 
	Likely used: 9
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  488397168
	Logical  Sector size:                   512 bytes
	Physical Sector size:                   512 bytes
	Logical Sector-0 offset:                  0 bytes
	device size with M = 1024*1024:      238475 MBytes
	device size with M = 1000*1000:      250059 MBytes (250 GB)
	cache/buffer size  = unknown
	Nominal Media Rotation Rate: Solid State Device
Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	    	SET_MAX security extension
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	WRITE_{DMA|MULTIPLE}_FUA_EXT
	   *	64-bit World wide name
	    	Write-Read-Verify feature set
	   *	WRITE_UNCORRECTABLE_EXT command
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	Gen1 signaling speed (1.5Gb/s)
	   *	Gen2 signaling speed (3.0Gb/s)
	   *	Gen3 signaling speed (6.0Gb/s)
	   *	Native Command Queueing (NCQ)
	   *	Phy event counters
	   *	unknown 76[15]
	   *	DMA Setup Auto-Activate optimization
	    	Device-initiated interface power management
	    	Asynchronous notification (eg. media change)
	   *	Software settings preservation
	    	unknown 78[8]
	   *	SMART Command Transport (SCT) feature set
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Error Recovery Control (AC3)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
	   *	SET MAX SETPASSWORD/UNLOCK DMA commands
	   *	WRITE BUFFER DMA command
	   *	READ BUFFER DMA command
	   *	Data Set Management TRIM supported (limit 8 blocks)
	   *	Deterministic read ZEROs after TRIM
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
		frozen
	not	expired: security count
		supported: enhanced erase
	2min for SECURITY ERASE UNIT. 2min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50025385500636ff
	NAA		: 5
	IEEE OUI	: 002538
	Unique ID	: 5500636ff
Checksum: correct

Dernière modification par Suntse (Le 09/03/2013, à 00:17)

Hors ligne

#4 Le 09/03/2013, à 09:04

F50

Re : [résolu]Trim sur ssd

Salut,

Et si tu veux tester le trim, tu peux suivre ce qui est indiqué dans ce lien:

https://sites.google.com/site/lightrush … andworking

#5 Le 09/03/2013, à 09:25

Suntse

Re : [résolu]Trim sur ssd

bonjour merci de ta réponse cela me mets ceci

1+0 records in
1+0 records out
52428800 bytes (52 MB) copied, 6,91526 s, 7,6 MB/s

tempfile:
 filesystem blocksize 4096, begins at LBA 2048; assuming 512 byte sectors.
 byte_offset  begin_LBA    end_LBA    sectors
           0    6408192    6510591     102400
/dev/sdX: No such file or directory

This is a sector of the file. It should have been successfully read
and show a bunch of random data.

Press any key to continue...

File deleted. Sleeping for 120 seconds before re-reading the sector.
If TRIM is working, you should see all 0s now.

If the sector isn't filled with 0s, something is wrong with your
configuration. Try googling for "TRIM SSD Linux".

Dernière modification par Suntse (Le 09/03/2013, à 09:30)

Hors ligne

#6 Le 09/03/2013, à 10:04

F50

Re : [résolu]Trim sur ssd

"/dev/sdX: No such file or directory" Il faut remplacer /sdX par /sda!

#7 Le 09/03/2013, à 10:12

Suntse

Re : [résolu]Trim sur ssd

oui je viens de remarquer merci ! désoler pas l'habitude

EDIT : c'est bon merci de votre aide !!!!!

sun@sun-W240EU-W250EUQ-W270EUQ ~ $ sudo /tmp/test_trim.sh tempfile 50 /dev/sda
1+0 records in
1+0 records out
52428800 bytes (52 MB) copied, 5,41285 s, 9,7 MB/s

tempfile:
 filesystem blocksize 4096, begins at LBA 2048; assuming 512 byte sectors.
 byte_offset  begin_LBA    end_LBA    sectors
           0    1935360    1968127      32768
    16777216    4720640    4753407      32768
    33554432    5785600    5818367      32768
    50331648    5834752    5838847       4096

/dev/sda:
reading sector 5834752: succeeded
ad30 681c 15e2 dd50 6a13 4a5f 77bc 9e05
66c3 ae28 5725 524a ffcb 763e 26a7 fc1c
cb27 539c 36e6 11a9 e0f2 9bbd 8fac 6601
3cbc 2aa2 bc20 3263 f90f 5417 923f 0b5a
afd1 c6da 9119 dc62 47d4 952c b9dc e70d
bcee 51ed 2e6d 1f2d 5633 0c4a e8f8 a256
bcd9 aafb 75fd cd05 2145 66c3 6900 8319
2249 a48b 0d00 5aff 3fca 29f9 3129 edb0
cfc5 5b88 24e0 92eb 8f41 8fa4 9b62 af5b
03ef 6880 cdb1 a81c 037a 64c3 9850 fd52
a848 91c3 6d15 f05e c815 b2f5 a2fe 1856
e435 c23d 1b81 7a6b e4eb 2370 de3b abcd
a0cd fd17 86bc 6dec d6d3 efbe 010f 718e
8adb eab5 9b56 2b98 6ee7 9864 2260 946a
e5bb 518a e448 b663 967e 5ca4 9b49 bcb9
157d 7af0 06ae 5068 8c4b 11e8 e4d3 a179
86b8 d329 4260 6634 0b0a 3d00 2419 138d
b200 ef72 cc91 211b c5d5 86bb 71a9 9153
cc5b 7e01 b55a 1e79 f791 5a60 e96f 8acf
9cdf 5fb1 1e0c a946 3708 c1b5 5083 4996
0444 0286 3786 64e5 7325 810b ad57 c23f
83af 53f1 d175 fe14 806a 55b2 fc31 3a60
1d2d 4960 eafb e62f 3ae6 36c6 644e 9449
5e31 82c1 d9ab e1c5 3ca1 cc96 2974 a9e4
19cb b110 d318 4778 37a9 6c78 f9ed 4a39
6d2b fde6 56d5 0799 24ef a7b3 ba82 da9b
0966 c3f2 516c 5683 52ec bf4b ba9e 98ab
c0cc be73 a87c 63a9 e7e3 f25b 0b56 b5bd
352e c47e f4dc 3684 ef39 4975 d9bc c3e7
8aa0 b447 a52d 8383 c283 1200 0722 e19e
48dc eaed 3a7b b5e8 95eb f197 133c c462
f39c c319 2525 1e13 90f3 e715 8cd6 3f45

This is a sector of the file. It should have been successfully read
and show a bunch of random data.

Press any key to continue...

File deleted. Sleeping for 120 seconds before re-reading the sector.
If TRIM is working, you should see all 0s now.

/dev/sda:
reading sector 5834752: succeeded
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000

If the sector isn't filled with 0s, something is wrong with your
configuration. Try googling for "TRIM SSD Linux".

Dernière modification par Suntse (Le 09/03/2013, à 10:14)

Hors ligne

#8 Le 09/03/2013, à 10:32

F50

Re : [résolu]Trim sur ssd

Tu peux mettre résolu dans le titre. cool