Questions tagged [trim]
49 questions
2
votes
1 answer
File access on SSD array suddenly slowed down; TRIM appears to be unavailable. How to enable, or what else could it be?
We have a system that's used for a GIS database (with Postgres as the underlying engine) which is using a software RAID 5 array of 4x2TB Samsung EVO870 SATA SSDs as its database drive. There is a nightly backup script that dumps the tables to a…

tsc_chazz
- 905
- 3
- 14
1
vote
2 answers
Lack of TRIM support -- will benchmarks get progressively slower on ZFS + SSD?
Context: I'm on a Toshiba 512 GB NVMe (Model: KXG50ZNV512G)
I'm seeing this weird behaviour while benchmarking Postgres on ZFS-on-Linux (via pgbench), where the second and third runs of a benchmark are progressively slower than the first run.
Here…

Saurabh Nanda
- 489
- 1
- 8
- 20
1
vote
1 answer
Repurpose a used SSD - how to TRIM it?
I am going to put a used SSD into a server to boot from it and hold the OS itself, while making a RAID1 from two other HDDs.
Since the SSD has been used, do I need to trim it beforehand and how?
Or do I just shove it in the server and use it right…

Pavel Tankov
- 376
- 3
- 16
1
vote
1 answer
Intermittent I/O delays on part of RAID array causing poor MySQL performance
I am managing a bare-metal server running a MySQL database as well as some other software. We are seeing performance issues with some MySQL queries, but the issues occur intermittently, and almost exclusively affect UPDATE queries.
As an example, I…

jnorthco
- 13
- 3
1
vote
1 answer
"UNMAP not supported" error on a device that supports UNMAP
I was playing with trim/unmap commands on a Samsung SSD (MZ7WD240 model).
To check the unmap support on this device i ran the following command:
hdparm -I /dev/sda | grep TRIM
And as expected the output shows that my device /dev/sda supports…

SamTh3D3v
- 273
- 2
- 10
1
vote
0 answers
Transfer the configuration settings and data from HPRM production to test
We are performing an upgrade of HPRM and we want to be able to replicate the production environment into a new test environment in AWS. Our infrastructure in AWS is already set up, however we were wondering if there was a way to export all the…

Nathan Scullen
- 11
- 2
1
vote
2 answers
Raid in SSD issue with Trim
Yesterday I posted a question about Storage Spaces and ReFS about cache turn off (write through mode) and it's settled. I thought it will be simple, but it turns out far from simple and ran into another issue. Storage Spaces doesn't recommend having…

Rivai
- 21
- 4
1
vote
1 answer
TRIM persistence across reboots
Let's say we have an ext4 filesystem image we dumped onto an SSD (with dd). After a few mounts we learn that we should use the discard flag to emit TRIM commands to the drive. As it is unclear whether the ext4 will trim all the free blocks the…

C2H5OH
- 145
- 6
1
vote
2 answers
Is wiper.sh working?
I'm setting up a server running Ubuntu Precise, and I'm trying to verify if SSD TRIM is working.
fstrim is failing:
~ sudo fstrim -v /
fstrim: /: FITRIM ioctl failed: Operation not supported
So I tried wiper.sh in hdparm:
wiper-3.5 sudo…

Aleksander Blomskøld
- 113
- 6
1
vote
2 answers
Ssd TRIM/DISCARD details
I am writing a script and I have a few questions about the inner workings of the TRIM command. If TRIM is issued for an entirely empty (zeroed) erase block, does the garbage collector still delete the block? I would like to be able to issue TRIM for…

Ivan
- 173
- 6
1
vote
2 answers
Does Ubuntu 10.04 support TRIM for SSD?
I read here that:
[T]o use TRIM, you need a OS that supports it, such as Windows 7, Mac
OS X and some variants of Linux being the only ones as far as I know.
You also need a SSD that supports TRIM obviously. Note that OCZ, Intel
and a few…

alfish
- 3,127
- 15
- 47
- 71
1
vote
0 answers
VMware Esxi with Kingston SSDNow (No Trim but S.M.A.R.T Garbage Collection)
I recently posted asking whether Trim is supported on VMware Esxi (here) and found out it is NOT.
I've read that some SSDs, such as the Kingston SSDNow have hardware garbage collection. Would this work within ESXi and compensate for the lack of…

nextgenneo
- 233
- 1
- 4
- 10
1
vote
2 answers
Trim on intel x25-m G2 when connected by iscsi
I am running a windows 7 vm on esxi connected to x25-M G2 via iscsi, which is running starwind iscsi on server 2008. Is trim a function of the vm OS or the iscsi server OS or not applicable with ISCSI?

user32222
- 319
- 1
- 4
- 12
1
vote
0 answers
Does trim need to be enabled inside a VM on a zvol?
zfs and virtio both have trim support, which means, that trim operations can be forwarded by VMs using zvols to the physical underlaying disks. (Please excuse my usage of the word "physical zpool". I use it to distinguish the zpool on the physical…

John Smith
- 111
- 2
1
vote
1 answer
Show free SSD space after TRIM / UNMAP / Deallocate?
For a hard drive supporting ATA TRIM, SCSI UNMAP, or NVMe Deallocate, is it possible to report on the amount of unallocated space?
For example, we take a 1TB drive, then write 500GB data to it, then delete 300GB. Is there any command to show that…

PhilR
- 483
- 1
- 4
- 15