Re: [patch][rfc] acpi: do not use kmem caches

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

 



Pekka Enberg wrote:
On Mon, Dec 1, 2008 at 7:25 PM, Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
Though I suspect using kmem caches to combat the internal
fragmentation caused by kmalloc() rounding is not worth it in this
case.

Btw, just for the record, the ACPI objects are indeed a bad fit for
kmalloc() as reported by SLUB statistics:

[ The size of ACPI kmem caches with wasted bytes per object in parenthesis. ]

                 32-bit size  64-bit size
  Acpi-Namespace  24 (8)       32 (0)
  Acpi-Operand    40 (24)      72 (24)
  Acpi-Parse      32 (0)       48 (16)
  Acpi-ParseExt   44 (20)      72 (24)
  Acpi-State      44 (20)      80 (16)

Though I suspect this situation could be improved by avoiding those
fairly big unions ACPI does (like union acpi_operand_object).
No, last time I checked, operand may get down to 16 bytes in 32-bit case -- save byte by having 3 types of operands... and making 2 more caches :)
--
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