RE: [RFC][PATCH] ACPICA: Drop Operand cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've had a bit of time to start looking at this again.

I'm still a bit confused about what this is trying to accomplish. Is it a performance gain? Is it to reduce memory use or memory fragmentation? I know there has been discussion on and off concerning the use of caches, object sizes, the big union, etc., but please refresh me.

As far as the operand objects, once the tables are loaded and the namespace is initialized, these are all dynamic with a lifetime of at most the duration of an executing control method -- so I'm not clear as to what is to be gained by splitting a single-sized object into a bunch of differently-sized objects. One would *think* that it would be more efficient to just allocate the single-sized objects from a single fast cache.



>-----Original Message-----
>From: Alexey Starikovskiy [mailto:astarikovskiy@xxxxxxx]
>Sent: Friday, April 17, 2009 12:56 PM
>To: Moore, Robert
>Cc: Len Brown; ACPI Devel Maling List
>Subject: Re: [RFC][PATCH] ACPICA: Drop Operand cache
>
>Moore, Robert wrote:
>> Please explain further what this accomplishes. This removes the use of
>any cache for the acpi operand object? What about performance? That was the
>major reason the cache was added in the first place.
>Our cache implementation fights with memory debugger in Microsoft Visual C
>standard library. If you care about performance, the best way is to disable
>this memory debugger, as we don't use it anyway. You could accomplish it in
>two ways, one is to disable all DEBUG, the other is to only disable memory
>debugger.
>
>With this patch, every object type is allowed to have it's own size, thus
>allowing separate optimization. For example, "extra" object, tied to region
>and field objects could be folded in to save both space and code, this
>optimization was implemented by Kuzmich some time ago, but was lost during
>layoffs.
>
>Regards,
>Alex.
>
>>
>>
>>> -----Original Message-----
>>> From: Alexey Starikovskiy [mailto:astarikovskiy@xxxxxxx]
>>> Sent: Friday, April 17, 2009 11:26 AM
>>> To: Moore, Robert; Len Brown
>>> Cc: ACPI Devel Maling List
>>> Subject: [RFC][PATCH] ACPICA: Drop Operand cache
>>>
>>> Hi,
>>>
>>> I've played with AcpiOperandObject union and corresponding cache.
>Removing
>>> the union does not seem to be viable -- patch easily overcomes .5 meg
>>> barrier, without any visible change. Dropping only the cache and making
>all
>>> individual objects allocated from heap requires smaller number  of
>changes
>>> and chould make SLAB/SLUB developers happy.
>>>
>>> Regards,
>>> Alex.

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux