From: Rick Sherm Subject: Memory policy question for NUMA arch.... Date: Tue, 6 Apr 2010 13:46:44 -0700 (PDT) Message-ID: <524835.89860.qm@web114303.mail.gq1.yahoo.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1270586804; bh=EuwGRLHUsqbntwDjeSibj0R3QrOleL6iJh48+b4JgQg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=xxuO+SqRYmzMo5v4cwbf1ep6GYCdHEemqeYmlZJEQZfNZKiRVejccXGZ+EjBDhX/xFz4QxLGjRcBM83t0mFoBr2mFol5eZ8ogRQLiFAqVN3NUr4huf3fhXImzXJJmLCiPgDSU2n9udipvCoJNty1V9ikBg/JM19z/XpwvL97Pck= Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-numa@vger.kernel.org CC'ing linux-numa. I emailed it to linux-kernel but forgot to 'CC' linux-numa. Please CC 'linux-kernel' while replying. Hello, On a NUMA host, if a driver calls __get_free_pages() then it will eventually invoke ->alloc_pages_current(..). The comment above/within alloc_pages_current() says 'current->mempolicy' will be used.So what memory policy will kick-in if the driver is trying to allocate some memory blocks during driver load time(say from probe_one)? System-wide default policy,correct? What if the driver wishes to i) stay confined to a 'cpulist' OR ii) use a different mem-policy? How do I achieve this? I will choose the 'cpulist' after I am successfuly able to affinitize the MSI-X vectors. regards Rick