[squid-users] SMP and AUFS
Amos Jeffries
squid3 at treenet.co.nz
Thu Mar 30 09:49:51 UTC 2017
On 30/03/2017 9:43 p.m., Matus UHLAR - fantomas wrote:
>> On 03/20/2017 10:15 AM, Matus UHLAR - fantomas wrote:
>>> Well, I personally will still be curious how much does SMP affect the
>>> case of one worker and one or more diskers...
>
> On 20.03.17 12:19, Alex Rousskov wrote:
>> I do not understand why you are asking this question in AUFS context.
>> AUFS does not use diskers!
>
> because it's diskers (rock store) who switch to SMP mode when "workers
> 1" is
> used, and this may cause troubles to *ufs.
>
>> Today, only Rock store uses diskers (in SMP
>> mode). Some other [ufs-based] cache stores use various helper threads
>> and processes for I/O as well, but those helper processes are not
>> diskers or even kids in SMP terminology.
>
> this is something I'd like to understand better...
Alex is referring to;
a) "diskd" cache_dir type, which uses a helper named 'diskd' to offload
parts of the file manipulations to that helper. (I've not looked closely
to see which, sorry).
b) squid builds with 'unlinkd' feature enabled, which uses an helper
called 'unlinkd' to perform file deletion outside the squid process.
c) AUFS which starts threads to perform the read/write I/O and file
deletion stuff.
... and I'm still learning of other such odd things in weird rarely
touched corners. There is something thread-like in digest creation for
walking the store index quickly and swap log rebuilding for example.
>
>>> do diskers only provide I/O to the requestor?
>
>> Diskers primary function is low-level disk cache I/O. Like all kids,
>> diskers respond to cache manager requests and Squid management events
>> (e.g. shutdown and reconfiguration). IIRC, diskers also build in-RAM
>> cache_dir index.
>>
>> http://wiki.squid-cache.org/Features/SmpScale#Terminology
>
> their own or also the shared one?
Alex may correct me but AFAIK there is currently only the shared index.
Diskers just do better with it through generic parallel-CPU efficiencies
than a non-SMP Squid would spreading the index actions between other
transaction work.
Amos
More information about the squid-users
mailing list