Plex overusing HDD

Hey!

About a month ago I noticed that my NAS is unusually noicy, specifically HDD(s) do some specific noise pattern you can hear on this video

Investigation has shown that noise stops immediately as I stop Plex server.
And it returns some time after I start Plex server again.

I am afraid that this activity my abuse my HDDs, does anyone have an idea what is going on?

I updated Plex couple times hoping that it will fix the problem but it does not look like it helps.

Plex Version: V1.10.1.602
NAS - QNAP TS-253 Pro

Thanks!

Never heard such noise. Do you have an USB box and a Windows PC ? I would poweroff the QNAP, dismount one disk, put it in the USB box, and use the disk manufacturer test tool (such as Data Lifeguard Diagnostic for WD and HGST devices) to check if the disk is Ok or needs replacement. Repeat for all disks.

Or make sure S.M.A.R.T. is configured :wink:

I thought about faulty drive, but why then it does so only when Plex server is started?
Disk test (throught QNAP UI) does not show any errors.

You can reduce Plex batch activities disabling some scheduled tasks, reducing the frequency of library searchs (in my case I prefer to execute them manually), and having your media files in subfolders with no more than 100 items so that Plex only searches folders changed from the last time. You can also disable DLNA and GDM if you don’t use them.

Also search in Google for reviews of your disk drives, it’s normal that drives make some noise when in use, but in your case it looks rather high. Are other users complaining of that ? In my (fortunately short) experience with failing drives I’ve found that the manufacturer’s tests are more reliable than the SMART tests available in NAS. If your drives are in warranty you can use the manufacturer test to request a RMA.

And adding to @moody_blue

Also disable thumbs generation

https://support.plex.tv/hc/en-us/articles/201697383-Why-is-Plex-Transcoder-using-my-CPU-when-nothing-is-playing-

@moody_blue said:

First, thank you for such detailed post, I really appreciate it!

You can reduce Plex batch activities disabling some scheduled tasks, reducing the frequency of library searchs (in my case I prefer to execute them manually), and having your media files in subfolders with no more than 100 items so that Plex only searches folders changed from the last time.

Got it, I just disabled automatic library update, will see if it helps.

You can also disable DLNA and GDM if you don’t use them.

Good idea! Disabled it as well.

Also search in Google for reviews of your disk drives, it’s normal that drives make some noise when in use, but in your case it looks rather high. Are other users complaining of that ? In my (fortunately short) experience with failing drives I’ve found that the manufacturer’s tests are more reliable than the SMART tests available in NAS. If your drives are in warranty you can use the manufacturer test to request a RMA.

There are couple of reasons why I think that the issue is not in HDD:

  • It is totally fine when Plex server is not running, noise disappears momentarily
  • QNAP tools and SMART report that disks health is Good (just performed full test and it didn’t result in any issues)
  • My disks are WD Red’s, they are not old and supposed to be reliable
 before that I had Greens and got some issues with them.

Though I will see how can I test it. I have a USB-HDD craddle just need to find right software and test.

I didn’t find any similar complains so far but it started relatively not so long time ago.

@dane22 said:
Also disable thumbs generation
https://support.plex.tv/hc/en-us/articles/201697383-Why-is-Plex-Transcoder-using-my-CPU-when-nothing-is-playing-

Though it is more about CPU usage, not HDD I checked it:
Video Preview Thumbnails - was already disabled
Chapter Thumbnails Generation - was scheduled task, I disabled it as well.
Thank you for suggestion!

@jazzfog said:
Though it is more about CPU usage, not HDD I checked it:

Actually both :wink:

Quick update. That didn’t help, when the Plex server is running I can observe constand HDD usage.
So for now I moved Plex server to different server instead of QNAP NAS.
Now it reads media files over network and everything seemed to be find (after a week of observation).

So it is clearly a Plex Server issue.

@jazzfog said:

There are couple of reasons why I think that the issue is not in HDD:

  • It is totally fine when Plex server is not running, noise disappears momentarily

If I may quote you:

The noise stops momentarily after you stop Plex but then returns even with Plex stopped?

a) Is the unit running out of memory performing some other task which is momentarily quieted, when PMS gives up the memory it’s using, only to resume when memory has been completely used again?

b) If PMS is stopped and the noise returns, how can it be PMS ?

If I may quote you:

The noise stops momentarily after you stop Plex but then returns even with Plex stopped?

Hi, ChuckPA
No, it is no what I ment to say :slight_smile:

It is totally fine when Plex server is not running, noise disappears momentarily

Means:

  • When PMS is not running - NAS is OK (so thi is why I think my HDD is fine).
  • When PMS is running and I stop it - noise disappears momentarily.
  • Noise returns only if I start PMS, not right away but next morning definitely.

I am now using PMS on other device (over a week) and accessing media library remotely - NAS does not make any weird noises.

a) Is the unit running out of memory performing some other task which is momentarily quieted, when PMS gives up the memory it’s using, only to resume when memory has been completely used again?

I have 8 gigs of ram (added 4), never seen it even close to max usage =)

b) If PMS is stopped and the noise returns, how can it be PMS ?
Above, bullet #3.

Hope it helps


Thank you for clarifying.

As was stated above, one of two conditions are possible.

a) A drive actuator is failing.
b) The type drives (manufacturer and model) are noisey. PMS does make demands on the drives.

I personally can tell you WD NAS drives are not noisy, I can also tell you HGST drives do make some noise but not the level you experience.
Even WD Black (not NAS rated), which are very noisy, do not make that much noise.

I can only conclude based on my years of experience, while not apparent in the SMART data, a drive will fail. It is not up the rigors of NAS use.

It can also be related to your HDD trays. Some members who have the “snap-on” rail trays have reported a reduction in noise by screw mounting their drives in the trays which helps reduce rattling.

@ChuckPA said:
a) A drive actuator is failing.
b) The type drives (manufacturer and model) are noisey. PMS does make demands on the drives.

IDK, I am not a hardware guy by any mean

What can I add here is that maybe it sounds bad on video but It is not louder than regular HDD useage, sound tone is also notmal (no ticks, clicks or grinding ). Just normal HDD sounds.
So only things that make me concerned are: There is a clear pattern and It does it all of the time if PMS is running (well, couple hours after start).

@MwC_Trexx said:
It can also be related to your HDD trays. Some members who have the “snap-on” rail trays have reported a reduction in noise by screw mounting their drives in the trays which helps reduce rattling.

Thank you for advice! Thought I do not think it will help in this particular case I will probably do that anyway to see if it reduces low vibration hum that NAS passes to the box where it sits (so when it is quiet in the room I can hear it)

Joined the forum just to say I’m having this exact same problem. Brand new Synology DS918+ w x2 8TB drives. When Plex is running the HDs rumble away almost non-stop at all hours of the day and night. When Plex server is stopped. The NAS makes what I would describe as normal disk noise. It’s clearly Plex server that is the issue here.

Regarding the Synology, what is it doing?

Is it indexing? Depending on the actual contents of your library, Plex’s activity is based on the number of items indexed. It does not matter if movies, episodes, music, or photos, each item creates a metadata entry (bundle) and a set of records in the database.

I think there is a misunderstanding about how a NAS behaves when it’s used for concurrent read/write operations such as that which PMS does during normal operation versus reading or writing one file at a time over a network

When an application reads & writes locally , which is what PMS running on the NAS does, it is a lot faster than if you’re trying to do something over the network to it. The drives themselves are capable of approximately 100 iops (I/O per second). PMS, or any application, running on your NAS, is fully capable of driving them up to their I/O per second limit if it needed.

In contrast, directory operations (getting the list of files in a directory) are cached just as files are. Files are read ahead by your computer (where PMS is running) in large blocks .

Now add how RAID works. RAID works by distributing the data and the data protection parity over the otherwise Reduntant Array of Independent Disks (RAID).
When you write 1KB to a file, somewhere on that RAID, the parity must be updated.

Let’s assume a typical RAID “stripe” (blocking) size of 64KB. This means that data is split up in 64KB blocks (Windows calls them clusters but the same thing). For each block written, regardless of size, the parity, which itself is distributed among all the drives, must be updated. If you’re updating a lot of files, that’s a lot of parity locations to update and data to replicate.

The same happens when you read (almost). It reads all the blocks to satisfy the read request plus the parity. Why? It does this to verify data integrity. It uses the parity to make sure what it did read matches. If not, it figures it out and resolves the data corruption before giving it to you.

Where folks get in trouble is when they put drives in a NAS which aren’t NAS-rated. Green drives or Desktop drives are NOT intended for this type of extended activity. It’s why we pay more for NAS drives. They have more durable components and have been tested to verify they will not fail.

In the event they do, they have an additional feature in their firmware which desktop drives do not have.
They have Time Limited Error Recovery (TLER).

What does need to be defined here is:

  1. Is the drive tray rattling? (yes, they do love to rattle if the drives aren’t locked down tight.)
  2. Is it the nature of that drive manufacturer to produce drives which are ‘noisier’ than others. 7200 RPM drives make a lot more noise than 5400 RPM but do give you a big speed increase. Pick your poison.
  3. Last but by far least, is there enough memory in the NAS for all the applications to run without “swapping” to disk? PMS will survive in 2GB, 4GB is more tolerable, 8GB is a sweet spot on Synology for those with hardware transcoding. QNAP is about the same. For both, once above 8GB, it’s based entirely on what other applications are running as services on the NAS concurrent with PMS

I’m having the same issue. Chuck, to clarify what jazzfog was saying: When he says the disk noise stops “momentarily”, he means it stops almost immediately. And, that the noise stays silent until Plex is restarted, even if that is hours or days later (jazzfog, correct me if I’m wrong?)

I’m experiencing the same issues. I have a tiny library (about 25 items) and I turned off much of the library scanning. When Plex is running, even if idle (nobody is watching anything) the NAS drives are constantly spinning (seeking, I believe). If I stop Plex, the drives stop spinning and stay quiet. When Plex has been shut down, the NAS will stay silent for hours, even days. The instant I turn Plex back on, the drives are constantly seeking. This happens continually, for hours or even days, even if Plex is idle.

My drives are perfectly healthy - I ran SMART checks on them. They are NAS rated drives. I have 8GB of RAM in my QNAP. Plex didn’t used to do this about a year ago (I forget when exactly it started). Can this be looked into?

1 Like

Plex does a great deal of disk i/o when it has tasks to do.

If you want to find out the actual activity,

  1. Turn off DEBUG (this leaves INFO, WARN, and ERROR)
  2. Let it, or make, make this ‘noise’
  3. Let it do this for 2-3 minutes,
  4. Turn DEBUG logging back on.
  5. Wait 60 seconds
  6. Settings - Server - Help - Download Logs
  7. Atach the ZIP file

PMS never goes 100% disk idle. It always is doing something.
Also, check the time and scheduled tasks which are selected.

It will metadata refresh, analyze media again, deep analyze media, analyze music (loudness) and a number of things. These are all disk activity generating tasks. If you have HGST or similarly loud drives, you will hear it.

My Syno and QNAP both rattle when I’m doing a simple media file remux. It is the nature of RAID and PMS exists on that RAID volume