Extremely many files in plexdata!

@ChuckPA said:
After deleting the libraries, did you Empty Trash, Clean Bundles to make sure everything was gone and then Optimize the Database after?

I did not. I assumed the libraries were not actually created in the database until the initial first-run setup was completed.

@NewPlaza said:

@ChuckPA said:
After deleting the libraries, did you Empty Trash, Clean Bundles to make sure everything was gone and then Optimize the Database after?

I did not. I assumed the libraries were not actually created in the database until the initial first-run setup was completed.

You know. I blame PLEX for that one. Trying to create libraries from the start.

The Libraries are start being created the moment you add a folder. I personally would prefer the library not be created until after all folders have been added and I give the final “OK” but that’s how they want it done.

@ChuckPA said:
The Libraries are start being created the moment you add a folder. I personally would prefer the library not be created until after all folders have been added and I give the final “OK” but that’s how they want it done.

That’s the thing. I never added a folder. Plex assumed.

I don’t understand. You browse for the folder. The moment it gets added to the list at the top, PMS starts scanning it. It does nothing prior.
I would prefer it wait until all folder(s) are added to the list at the top and I go to the next step but it doesn’t

@ChuckPA said:
I don’t understand. You browse for the folder. The moment it gets added to the list at the top, PMS starts scanning it. It does nothing prior.
I would prefer it wait until all folder(s) are added to the list at the top and I go to the next step but it doesn’t

No. The initial startup page or welcome EULA page where Plex will ask for a friendly name, pre…
Ahh… Here → https://support.plex.tv/articles/200288896-basic-setup-wizard/
I removed the 2 predefined libraries before clicking next.

OK. Those are empty by default. PMS has no folders attached so there will be no metadata. All good :slight_smile:

@ChuckPA said:
OK. Those are empty by default. PMS has no folders attached so there will be no metadata. All good :slight_smile:

Hey @ChuckPA… Do you know what the status of this is?

I did the base research and asked.

  1. Cold start = 169 files (before signing in)
  2. Media Ready = 997 (sign in / claim / all initialization complete)

This is the base structure. It can handle up to the limit of limit of the database file itself which is 140 TB.

The design decision was whether to put all your posters and subtitles in the database with all the indexing information or leave it out in the file system. As it stands now, you can change poster or subtitles, add or remove, without touching the DB. Anything else would require PMS actually import the item.

My DB currently is 85,915,648 (85 MB). I have 16,149 posters consuming 5.5GB of JPG storage. Add in the posters to the DB and it grows to 5.5GB for the DB. itself.

Try optimizing that database . It won’t happen in real-time.

Using my Samsung SSD (850 EVO), a tar backup of the Library requires 1:45. If this were an optimization, another 1:45 would be required to ‘import’ the data back into the DB file. PMS will have been inaccessible for 3m 30sec.

I don’t even have a big library compared to most. What happens when Chapter index and thumnail images are created? They have to go somewhere.

The files & directory structure needs to be there.

I suggest tune2fs -l /dev/sdxx and look at what the FS is created as.

I tune mine because I know i won’t need all the inodes for files and I still get

Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              21004288
Block count:              84003328
Reserved block count:     0
Free blocks:              48574048
Free inodes:              20277545
First block:              0


aka

[chuck@lizum plexdir.130]$ df -i /home
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
/dev/sda7      21004288 726976 20277312    4% /home
[chuck@lizum plexdir.131]$ df /home
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda7      330609160 142030916 188561860  43% /home
[chuck@lizum plexdir.132]$

If you want to clean up something excessive, not wasting space on unused inodes is a worthy challenge.

At this point, I really don’t think PMS would consider changing how it structures metadata posters without also performing a complete rewrite from scratch. I just don’t see that happening. It would require exhaustive testing and algorithm proofing on everything all over again. It would be like winding the clock back almost 10 years and throwing it out the window and overhauling the old XBMC storage

@ChuckPA said:
I suggest tune2fs -l /dev/sdxx and look at what the FS is created as.

I believe this may help @jakobbg. These commands will not help me. I guess my only beef with the download of all posters is why? Only one poster can be displayed at any one time. After hours/days/weeks/months/years you would think the extra posters are not needed. Were you able to look at the test sample I uploaded? Did/do you find it odd of all the downloaded posters?

I see and understand what’s happening. I also know work currently in progress. When finished, it will be a lot better.

@ChuckPA said:
I see and understand what’s happening. I also know work currently in progress. When finished, it will be a lot better.

That’s great. I’m glad this was looked at as something undesirable.

Was this ever finished?

Really exited to see progress being done after I went away for a year :-). Today I my library is about 30GB, which also is rather big.

$ uname -a
FreeBSD core2.grimstveit.no 11.2-RELEASE-p8 FreeBSD 11.2-RELEASE-p8 #0 859a3eff706(releng/11.2): Wed Jan  9 21:51:36 CET 2019     root@core2.grimstveit.no:/usr/obj/usr/src/sys/CORE2  amd64

$ pkg info | grep plexmediaserver
plexmediaserver-plexpass-1.14.1.5488 Plex Media Server component

$ pwd
/usr/local/plexdata/Plex Media Server/Media/localhost

$ ls -laR | wc -l
  440903

$ du -hs .
 30G    .

Hey @ChuckPA
I know that when we last talked you were able to see the issue and there was progress to fix it being made. Have you heard anything new from the food-chain?

Oh dear, I believe I may have been blocked.

@BigWheel
Sorry to ask you but I am unable to contact Chuck on the matter. The last time Chuck and I spoke was very promising. While he does not have the issue personally, he was able to see the issue from the logs I provided and stated they have a fix in the works. Do you know if progress has been made?

Greetings from Italy!!!

I tried to create a library with only a movie (28 Days Later), then i’ve to select only an agent (look at images), but the result is the same
These are the settings in agent option:



And here the sixteen movie posters:



In media server dir I found the 16 poster files with the imdb (???) agent in the name, for example
com.plexapp.agents.imdb_xxxxxxxxxxxx etc

So nothing has modified since before the changes. Why Plex developers do not include an option to delete automatically unused posters and leave only the selected ones?

Sorry for my bad english.

I would like to thank everyone for your availability

Sergio Alunni - Rome IT