Questions tagged [trim]
The trim tag has no usage guidance.
49
questions
2
votes
1
answer
88
views
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 ...
3
votes
1
answer
2k
views
fstrim is very slow on xfs and always return same value unlike ext4
I just noticed if I do time fstrim /<some ext4>; time fstrim /<some ext4> the 2nd call usually print 0 bytes trimmed and finished immediately. However if I do same thing on XFS, 2 of the ...
1
vote
0
answers
296
views
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&...
1
vote
1
answer
559
views
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 ...
5
votes
2
answers
702
views
How is TRIM handled when cloning a disk with dd?
The TRIM command allows an OS to inform an SSD which sectors contain data, and which are free. This allows the disk to re-use free sectors internally and improves wear leveling.
Now, if an SSD is ...
5
votes
2
answers
11k
views
When and how often does ZFS 'autotrim' take place?
I have read "Add TRIM support" article, but failed to get a clue for "When and how often does ZFS autotrim take place?" And How can I observe activities of autotrim?
Thanks for ...
1
vote
0
answers
407
views
Repeatedly run fstrim doesn't seem to work
When I run fstrim --all -v a few times in a row it doesn't seem to be working as expected. Every time it reports that it processes the same number of bytes:
root@pc:~# fstrim --all -v
/boot/efi: 503.2 ...
1
vote
2
answers
355
views
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 ...
4
votes
1
answer
5k
views
TRIM issues with software RAID1 (mdadm) on two different SSDs (size and manufacturer)
I plan to do a server with 2 SSDs in RAID1 (for OS and boot) and 3 HDDs in RAID5 (for data). All Linux (CentOS7) with mdadm.
We have in the office 2 leftover SSDs, but they are from different ...
1
vote
1
answer
437
views
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 ...
1
vote
1
answer
854
views
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 ...
1
vote
1
answer
2k
views
"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 ...
2
votes
0
answers
128
views
Is there a "TRIM" command for dmcrypt devices?
When using an encrypted drive in a virtual machine, the VM image starts very small if you do not initialize the drive with random data. When you fill the drive, it grows, but when you delete files it ...
13
votes
2
answers
885
views
Enable Discards HP 3PAR StoreServ 7400
Spin off from these previously asked questions
How to get free space from mounted drive Redhat 7
Update crypttab asks for Passphrase for fstrim
We have a HP 3PAR StoreServ 7400 with 170 VM's ...
54
votes
4
answers
49k
views
What is the current state (2016) of SSDs in RAID?
There are plenty of resources available online that discuss using SSD drives in RAID configurations - however these mostly date back a few years, and the SSD ecosystem is very fast-moving - right as ...
1
vote
0
answers
35
views
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 ...
1
vote
2
answers
2k
views
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 ...
2
votes
1
answer
1k
views
SSD fstrim on CentOS 6.x with software raid5
I have some CentOS 6.x servers. They have software raid1 and fstrim works well there.
On one of the servers, I decided to do software raid5 and ext4. I can mount it with discard and there is no error ...
2
votes
1
answer
2k
views
TRIM Support in PERC H310 Mini
I am running Debian 8 on a Dell PowerEdge R420.
The OS is installed onto a INTEL SSDSC2BA800G3T SSD running the 5DV1DL03 firmware.
The SSD is connected through a PERC - H310 RAID controller (fw 2....
2
votes
1
answer
583
views
Is it really necessary to use fstrim on Samsung SM843T SSDs?
Should we schedule periodical fstrims on Samsung SSD drives?
What happens if we don't run such periodical scripts?
I am highlighting the model on the Title because I am assuming that the answer is ...
2
votes
1
answer
2k
views
LSI 9207-8i and Samsung 850 PRO TRIM support
A Dell R610 server with LSI 9207-8i HBA card has 6 Samsung 850 PRO SSDs connected to it.
hdparm shows TRIM support:
sudo hdparm -I /dev/sdc | grep -i trim
* Data Set Management TRIM ...
0
votes
1
answer
141
views
When Upgrading My 3.5" HDs To SSD HDs Can I Continue To Still Use RAID 1 (MIRROR)?
I'm upgrading my old 3.5" HDs to a set of SSD HDs. I currently run a RAID 1 (MIRROR) array for the 2 old drives (just in case) and want to know how I should rollout the new SSD drives... I have been ...
6
votes
1
answer
11k
views
Trim support in Hardware RAID (Perc H700)
We are about to order a dell R610 with a H700. We were thinking of using 2 X Samsung 850 Pro 512Gb drives in RAID 1.
The question is does the Perc H700 support TRIM in hardware RAID 1? The answers I ...
4
votes
3
answers
7k
views
Is there a way to force a TRIM in a Windows 2012 Software RAID array?
I have a Windows 2012 server configured with two SSD under a Software RAID 1 (controlled by Windows), under that configuration the optimization tool is not supported.
Is the TRIM still scheduled/...
5
votes
1
answer
4k
views
Cannot remove mount option "discard" on an ext4 file system
I tried to turn off TRIM ("discard") on my ext4 filesystem, but I did not succeed.
I tried to add nodiscard option into /etc/fstab, but I can still see this:
# tune2fs -l /dev/md2 | grep ...
4
votes
0
answers
239
views
Trim Azure VHD size in Windows 2008
I have an azure virtual machine and due to a broken backup script, it has previously used the entire 127GB of space. My virtual machine is now only using 20GB however I'm still being charged for the ...
5
votes
1
answer
842
views
Should new Linux VMs under ESXi 5.5 mount their filesystems with discard option?
When creating new Linux virtual machines using recent (>= 2014) distributions in VMware ESXi 5.5, should they mount their filesystems with the discard option ?
I make the assumption that the VM's ...
6
votes
0
answers
1k
views
Running fstrim as cronjob - what happens when interrupted by shutdown
One of the ways to implement fstrim on a file system, it to make a cron.daily task that runs fstrim /. This is preferred over -o discard (mount option) by a lot of people, because the latter can make ...
11
votes
3
answers
4k
views
Background discard on swap partitions on Linux + SSD
Problem
I want to enable background TRIM operations on a swap partition within a SSD disk on Linux. According to several articles, e.g. this one, the kernel detects this configuration and ...
4
votes
3
answers
3k
views
Maintenance (TRIM) of SSDs in HW RAIDs
I have 2 ARECA 8040 HW-RAIDs, with 8 SSDs each. One is RAID10 with Intel 520 SSDs, the second is RAID5 with Samsung 840 SSDs. Both are connected to the Server with one shared LSI Logic / Symbios Logic ...
1
vote
1
answer
780
views
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 ...
1
vote
2
answers
2k
views
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 ...
2
votes
0
answers
989
views
TRIM on OCZ RevoDrive 3 on CentOS
I've got an OCZ RevoDrive 3 mounted as / on my CentOS 6.3 box running kernel 2.6.32-220.17.1.el6.x86_64. /boot is on a HDD since OCZ's driver apparently doesn't yet support booting directly to it. ...
4
votes
1
answer
1k
views
Is TRIM passed through a LVM-based PV Xen domU to the underlying SSD
Scenario:
-- Debian Xen dom0
-- SSD drive setup as LVM PV/single Volume Group.
-- Debian pv_ops-based domU setup on LVM logical volume.
-- File system inside domU is ext4 with discard option enabled.
...
1
vote
2
answers
1k
views
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 ...
5
votes
0
answers
3k
views
Do I need to trim my SSD? How?
I have been using a pair of Intel 320 in RAID 1 on my busy Ubuntu server for about 4 month. While the disk usage never reached 50% of the capacity, but I FEEL that the server has become less ...
0
votes
2
answers
2k
views
TRIM in centos 5.X?
I've got a bunch of centos 5 boxes with Intel X-25 drives (x25-m in dev, x25-e in prod, I think). We're seeing severely degraded disk performance on one of our dev boxes (which easily does 5+ gb of ...
3
votes
3
answers
765
views
Using SSD drives in a raid in an operation involving little to no deletes
From what I've been able to understand when reading about the case with Solid State drives and raids, the problem is that TRIM cannot be used for them in a raid configuration, thus, resulting in the ...
21
votes
6
answers
13k
views
Verify TRIM support with BtrFS on SSD
We are looking into using BtrFS on an array of SSD disks and I have been asked to verify that BtrFS does in fact perform TRIM operations upon deleting a file. So far I have been unable to verify that ...
3
votes
1
answer
4k
views
Is TRIM possible on SSD disks in RAID 1?
I am going to build a new server to handle a high-traffic php/mysql site. I am going to use SSD disks to benefit from fast random read performance but really got confused about choosing the right SSD ...
1
vote
2
answers
2k
views
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 ...
2
votes
3
answers
534
views
SSD TRIM Support in Snow Leopard
Does Mac OS X Snow Leopard officially support SSD TRIM yet? If not, is there an expected availability? Also, is there a brand of SSD that is most compatible with a late-2009 Mac Pro?
1
vote
0
answers
961
views
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 ...
3
votes
2
answers
4k
views
SSD on Vmware ESXI 4 (TRIM? Good Idea?)
I just posted about finding bottle necks and have narrowed it down to having way too many VMs on my machine on one 15K SAS drive. I have plenty of cores and plenty of ram.
So I am planning on putting ...
11
votes
4
answers
5k
views
SSD TRIM (discard) problems with ext4 on Crucial C300 SSDs with CentOS 5.5
Playing around with using a modern kernel (2.6.37 currently) on an older OS (CentOS 5.5) so we can get TRIM (discard) working on our SSDs (Crucial C300s).
The most recent hdparm (9.37) concurs that ...
20
votes
6
answers
15k
views
Possible to get SSD TRIM (discard) working on ext4 + LVM + software RAID in Linux?
We use RAID1+0 with md on Linux (currently 2.6.37) to create an md device, then use LVM to provide volume management on top of the device, and then use ext4 as our filesystem on the LVM volume groups.
...
0
votes
3
answers
1k
views
SSD Harddisk and linux distro with TRIM support
I have a Corsair Force Series SSD harddrive which I plan to put in a 1 unit linux box as a linux server.
The server itself will be making a lot of random reads and very little writes, which makes SSD ...
1
vote
2
answers
2k
views
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 ...
4
votes
4
answers
4k
views
Linux tool to reset Intel X25 SSDs wear leveling tables?
I'm aware of the DOS utility to "Reset" an Intel SSD to factory settings, but I'd rather not shut down my system to do this to my SSDs.
Supposedly newer kernels support TRIM, but I haven't found any ...