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=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,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 5DF64C33CB1 for ; Wed, 15 Jan 2020 12:54:31 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 21E9D206D7 for ; Wed, 15 Jan 2020 12:54:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sMRpEvK5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 21E9D206D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iriAj-0000kH-9N; Wed, 15 Jan 2020 07:53:21 -0500 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1iriAg-0000k5-Ur for kernelnewbies@kernelnewbies.org; Wed, 15 Jan 2020 07:53:19 -0500 Received: by mail-lf1-x135.google.com with SMTP id 203so12588988lfa.12 for ; Wed, 15 Jan 2020 04:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dck6TeoZrTTZ1gU+6hTEm1H0g9Ad6Aprjg3rDcqL4a4=; b=sMRpEvK5XCsOlL8Qt/yET3ivd6dEZ5LW1U4Xaqu5HCla7aJarYyGyld16mZTCt+vRU AQAGfyZKslTf27iXtgMkTUldDVctAuOOAbf+2oBUdPRDbyjnnBSI4TeJFxSjjjiGw36w Y5zGgf9ELCPBQ/seDsSSs64FU+nBUtRu0/Cz+gu9kX0Et5YSZY6HiY/ans7yJTtrG+ll qqbOjrgyWCwm3kwFYANwZJLZusvwsWtjD83FYwz/kJhQXbKcJSJYK6Kz1xC/fgbps1GI w5du+za9fhhLOC4W56NB0bC9fY2ztHreS5pBRmxBRHW6X0J9I0i+KMyY3lqz8US5yuJs wlMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dck6TeoZrTTZ1gU+6hTEm1H0g9Ad6Aprjg3rDcqL4a4=; b=sFyY2D3ncJ3B3JEl8B3LQSZufqwxqtEImKbwWoig/EThhJIKrHtI8vozcweKpZelyM GYuaKehKl6PXGFO+EqBxBsrd8h38WGMB/twow6gA1slWAii4cwGBPVJ1qD5k8fwcDEuL q3Bp6NBzuWcdvVj5F6iFlp7Iy4ca0Zj4SG460vp5OG/u+GRuvWpw16DEZr8KHbyEtxfD A4fb8rzzEF5HWk1A/qzp1XH2VJxTXXLakZ+/2ixoo++MXxTBhbI8rAToL/hrNk6hIWT4 UcLxfccMUiwCNSTQJalwRz6xc66DW7XGrQvFGzaHUJDGpLOlfXtA+S5ZZ9KaVuf5Y2nd vs1g== X-Gm-Message-State: APjAAAUbhNAy1ryuO44hX03AgeHraK/1AUTpUsD/SB+Pp8laSgTG4gp7 irS0QENn016vKUtsZVeWSvpjbGL+zaUWgHSSqis= X-Google-Smtp-Source: APXvYqzrRkyEsSKJCFxmdpNsTKuCeKCt/3dSBmgUhHkm084eB5dscHxzXvdHUO8bcn6QrWNH9/r1EkR41/V7/WC7KQY= X-Received: by 2002:ac2:430d:: with SMTP id l13mr5085929lfh.112.1579092796024; Wed, 15 Jan 2020 04:53:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Anupam Kapoor Date: Wed, 15 Jan 2020 18:23:05 +0530 Message-ID: Subject: Re: transfer physical memory page to swap disk To: Sumit Kumar Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3124055230448761131==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3124055230448761131== Content-Type: multipart/alternative; boundary="0000000000002cac54059c2d311b" --0000000000002cac54059c2d311b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 15 Jan 2020 at 6:02 PM Sumit Kumar wrote: > Hi, > Does C/C++ provide any API / system call that enables user to force the > application to transfer some its physical pages to swap disk ? If so, is = it > also possible to obtain the least used page using some API ? > would madvise not serve your needs ? =E2=80=94 kind regards anupam --=20 In the beginning was the lambda, and the lambda was with Emacs, and Emacs was the lambda. --0000000000002cac54059c2d311b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, 15 Jan 2020 at 6:02 PM Sumit Kumar <sumit686215@gmail.com> wrote:
=
Hi,=C2=A0
Does C/C++ pr= ovide any API / system call that enables user to force the application to t= ransfer some its physical pages to swap disk ? If so, is it also possible t= o obtain the least used page using some API ?=C2=A0

would madvise not serve your= needs ?

=E2=80=94
=
kind=C2=A0regards
anupam=C2=A0
--
In the beginning was the lambda, and the lambda was with Emacs, and = Emacs was the lambda.
--0000000000002cac54059c2d311b-- --===============3124055230448761131== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3124055230448761131==--