From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D2B2C433DF for ; Fri, 26 Jun 2020 08:17:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 31929207E8 for ; Fri, 26 Jun 2020 08:17:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KuNO1gbG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31929207E8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B85FF6B0003; Fri, 26 Jun 2020 04:17:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B35706B0005; Fri, 26 Jun 2020 04:17:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A24956B000A; Fri, 26 Jun 2020 04:17:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0027.hostedemail.com [216.40.44.27]) by kanga.kvack.org (Postfix) with ESMTP id 8876D6B0003 for ; Fri, 26 Jun 2020 04:17:36 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 1BA9333C4 for ; Fri, 26 Jun 2020 08:17:36 +0000 (UTC) X-FDA: 76970658912.20.frog45_561549726e53 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id EA310180C0609 for ; Fri, 26 Jun 2020 08:17:35 +0000 (UTC) X-HE-Tag: frog45_561549726e53 X-Filterd-Recvd-Size: 3494 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Fri, 26 Jun 2020 08:17:35 +0000 (UTC) Received: by mail-qk1-f179.google.com with SMTP id l6so8051309qkc.6 for ; Fri, 26 Jun 2020 01:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=F2Rgmx/0THCLZgYw36rQ7fTwUH7HlBQMbmry2WCBvcw=; b=KuNO1gbGsDobyCrO/SGhvMe1Vqw2jjkZ1hwyzxgYMaxbhzcG1lF5RIm5PgNUAJ31Qy PhiGpz7EhpHU1ScECp6tCCFJNcHbco69+y62YqSGdERxonh17Abj6Kn22RbDaa3X/7dc BlM8Fa1URyRjndStcBMn8C1NZtiZKNVkp+MWyh1tgAk52AGdNYy3BXuIDpdjjtpuCKSt YjCgjuENTyyZqQ44J39tGnALTi33UIiLX8ihseRxRf7DT29pfBTLWUmw0oN9Cswj/tEj bOWQVVnPQikzSZJFPBie2SEX6cbRltzws2IRvz4yk/LLjcxbDZhx+RpdBB5TggAIx7+5 ilww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=F2Rgmx/0THCLZgYw36rQ7fTwUH7HlBQMbmry2WCBvcw=; b=h8Ub/PIyEg76oI1GdTOHHIq4xEPsFUCWZUSF+BWzNhl/TNDeKgbZXFqtJalXIjdS3G 80d3PqLgJkPYoI1m8fNudBUeGMXAecsWCpvrz4cgNFT5sF5WZjnJfKjqcwXPqt69F4d2 E0PSbZWWW9KgwCZLT6caxrLrc0gjpoP4HXXgcHWSIlR6u5B/E7vhfk2CGzH/KDfFkuzU 2pv/foHzfgo93r8IaQ/igUpTak/S96OSqgV5wvH7B2lIqLrjeTTHBJ0t5k5g9DaPzfs7 rUppCqYnO/8ry7Q9Me+uixGiV9/4TH0uc8VDYvNW6pyFjihva0VvkUZDW8+6iUMI3fHq /LWw== X-Gm-Message-State: AOAM530Y/lswjCXcv++TduI8y06+ey0k3u5oza2YBCVD7/pXmFOl1yxJ 97xyEG35W8jBCqgIpG/yeE4qePySQQegE6isRJ5AXUuSH+bQHg== X-Google-Smtp-Source: ABdhPJyUzno9OXeZjEEzsLQpHfXDiJ4NX/QWA4HB1fU+Ib/xzUGpIdR4aK8qosxYUv1AxRGk4SyN8GSw3UgldwHZCPA= X-Received: by 2002:a37:6382:: with SMTP id x124mr1378469qkb.13.1593159454746; Fri, 26 Jun 2020 01:17:34 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?5a2Z5LiW6b6ZIHN1bnNoaWxvbmc=?= Date: Fri, 26 Jun 2020 16:17:03 +0800 Message-ID: Subject: Are there some potential problems that I should be aware of if I allocate the memory which doesn't have any relation to peripheral hardwares(i.e. DMA,PCI) by vmalloc() instead of kmalloc() to avoid the page allocation failure? To: linux-mm@kvack.org Content-Type: multipart/alternative; boundary="0000000000005eeccd05a8f85798" X-Rspamd-Queue-Id: EA310180C0609 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.001146, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --0000000000005eeccd05a8f85798 Content-Type: text/plain; charset="UTF-8" Hi, list Besides kmalloc() is more efficient, are there some potential problems that I should be aware of if I allocate the memory which doesn't have any relation to peripheral hardware(i.e. DMA, PCI) by vmalloc() instead of kmalloc() to avoid the page allocation failure. Thank you for your attention to this matter. --0000000000005eeccd05a8f85798 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, list
Besides kmalloc() is more efficient, ar= e there some potential problems that I should be aware of if I allocate the= memory which doesn't have any relation to peripheral hardware(i.e. DMA= , PCI) by vmalloc() instead of kmalloc()=C2=A0 to avoid the page allocation= failure.

Thank you for your attention to this matter.
--0000000000005eeccd05a8f85798--