Re: [PATCH] vlan & net drivers: avoid a 4-order allocation



On Wed, 28 Feb 2007 14:41:57 +0200
Dan Aloni <da-x@xxxxxxxxxxxxx> wrote:

Hello,

This patch splits the vlan_group struct into a multi-allocated struct. On
x86_64, the size of the original struct is a little more than 32KB, causing
a 4-order allocation, which is prune to problems caused by buddy-system
external fragmentation conditions.

I couldn't just use vmalloc() because vfree() cannot be called in the
softirq context of the RCU callback.

Signed-off-by: Dan Aloni <da-x@xxxxxxxxxxxxx>


Please submit patch to proper place: netdev@xxxxxxxxxxxxxxx
and Ben Greear <greearb@xxxxxxxxxxxxxxx>



--
Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH] split bprm_apply_creds into two functions
    ... The following patch splits bprm_apply_creds into two functions, ... static inline int security_bprm_set (struct linux_binprm *bprm) ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [REPOST][PATCH] IB/ehca: Allocate event queue size depending on max number of CQs and QPs
    ... If a lot of QPs fall into Error state at once and the EQ of the respective ... HCA is too small, it might overrun, causing the eHCA driver to stop ... struct ehca_eqe_cache_entry { ... extern int ehca_scaling_code; ...
    (Linux-Kernel)
  • [PATCH 08/10] xen: fix incorrect vcpu_register_vcpu_info hypercall argument
    ... The kernel's copy of struct vcpu_register_vcpu_info was out of date, ... at best causing the hypercall to fail and the guest kernel to fall ... back to the old mechanism, or worse, causing random memory corruption. ...
    (Linux-Kernel)
  • [PATCH 10/12] xen: fix incorrect vcpu_register_vcpu_info hypercall argument
    ... The kernel's copy of struct vcpu_register_vcpu_info was out of date, ... at best causing the hypercall to fail and the guest kernel to fall ... back to the old mechanism, or worse, causing random memory corruption. ...
    (Linux-Kernel)
  • Re: Structure in CSharp
    ... One is that your _myUnion struct doesn't look to me to be the same as the original struct you've specified. ... You've got as its first field a single byte "_messageType", but the original struct has a 255-byte array named "Data". ... Another thing is that the _olmSYSTEM_INFORMATION struct doesn't look like anything in your original struct definition. ... This may or may not be a problem, but I am left wondering how you got from the original struct definition you posted to the C# declaration you've also posted. ...
    (microsoft.public.dotnet.languages.csharp)