Why does L2 deferred write eat physical memory? Topic is solved

FAQ, getting help, user experience about PrimoCache
Post Reply
fattipants2016
Level 1
Level 1
Posts: 4
Joined: Tue Aug 21, 2018 1:33 pm

Why does L2 deferred write eat physical memory?

Post by fattipants2016 »

I recently built a desktop computer, and wanted to revisit Primocache as a 'landing zone' for a slew of external 8tb SMR hard drives.

I'm not interested in caching, or L1 memory at all, I just want to use a 500GB SSD RAID-0 as a write-buffer for my slow disks.

Like the title says, I don't understand why (when not wanting read-buffer at all) primocache still requires GB's of physical memory to achieve a reasonably small block size?

I understand using physical memory as a sort of 'index' of the cache contents, but I do not want read-cache at all. Only write.
Monoroch
Level 1
Level 1
Posts: 2
Joined: Wed Dec 12, 2018 5:32 pm

Re: Why does L2 deferred write eat physical memory?

Post by Monoroch »

I'm just user, so it just assumption.
SSD write buffer for HDD. It still cache, just in another direction.
It anyway need to write data to ssd, primocache use it's own file system, which need ram for maintain index of cache data.
In other word, after write to ssd, it works as read cache for transfer data to hdd.
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Re: Why does L2 deferred write eat physical memory?

Post by Jaga »

fattipants2016 wrote: Wed Dec 12, 2018 2:14 pmLike the title says, I don't understand why (when not wanting read-buffer at all) primocache still requires GB's of physical memory to achieve a reasonably small block size?
Indexing. The more blocks, the larger the index. It maps blocks (Primocache) to groups of clusters (volume), and the more of them it has to map, the larger the memory use is. It also saves state information (like unwritten/written), and probably other information on the blocks.
fattipants2016
Level 1
Level 1
Posts: 4
Joined: Tue Aug 21, 2018 1:33 pm

Re: Why does L2 deferred write eat physical memory?

Post by fattipants2016 »

Monoroch wrote: Wed Dec 12, 2018 8:05 pm SSD write buffer for HDD. It still cache, just in another direction.
I guess that makes sense. Too bad for something relatively slow (like write-caching) it doesn't use a on-disk index, but I'll live.
Post Reply