get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/29431/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 29431,
    "url": "https://patches.dpdk.org/api/patches/29431/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/138d85856e7b5c6c09abfccdb885927458120be8.1506689397.git.echaudro@redhat.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<138d85856e7b5c6c09abfccdb885927458120be8.1506689397.git.echaudro@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/138d85856e7b5c6c09abfccdb885927458120be8.1506689397.git.echaudro@redhat.com",
    "date": "2017-09-29T12:50:45",
    "name": "[dpdk-dev] doc: Adds reference to use mlockall() in the Programmer's guide",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8327c5dba5c7862d132e14cdfb4ecccacfe4fcc4",
    "submitter": {
        "id": 672,
        "url": "https://patches.dpdk.org/api/people/672/?format=api",
        "name": "Eelco Chaudron",
        "email": "echaudro@redhat.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/138d85856e7b5c6c09abfccdb885927458120be8.1506689397.git.echaudro@redhat.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/29431/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/29431/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CF30F5592;\n\tFri, 29 Sep 2017 14:50:37 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id F1BF5FFA\n\tfor <dev@dpdk.org>; Fri, 29 Sep 2017 14:50:36 +0200 (CEST)",
            "from smtp.corp.redhat.com\n\t(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 390454E34A;\n\tFri, 29 Sep 2017 12:50:36 +0000 (UTC)",
            "from rhvm.com (ovpn-116-180.ams2.redhat.com [10.36.116.180])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 8411353CF6;\n\tFri, 29 Sep 2017 12:50:35 +0000 (UTC)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 390454E34A",
        "Authentication-Results": [
            "ext-mx09.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx09.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=echaudro@redhat.com"
        ],
        "From": "Eelco Chaudron <echaudro@redhat.com>",
        "To": "john.mcnamara@intel.com",
        "Cc": "dev@dpdk.org",
        "Date": "Fri, 29 Sep 2017 14:50:45 +0200",
        "Message-Id": "<138d85856e7b5c6c09abfccdb885927458120be8.1506689397.git.echaudro@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.13",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.38]); Fri, 29 Sep 2017 12:50:36 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH] doc: Adds reference to use mlockall() in the\n\tProgrammer's guide",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "When I was adding mlockall() to the testpmd application it was\nsuggested to add a reference to the use case of mlockall().\n\nSigned-off-by: Eelco Chaudron <echaudro@redhat.com>\n---\n doc/guides/prog_guide/writing_efficient_code.rst | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/writing_efficient_code.rst b/doc/guides/prog_guide/writing_efficient_code.rst\nindex 8223aceea..3975026ce 100644\n--- a/doc/guides/prog_guide/writing_efficient_code.rst\n+++ b/doc/guides/prog_guide/writing_efficient_code.rst\n@@ -105,6 +105,20 @@ meaning that if all memory access operations are done on the first channel only,\n \n By default, the  :ref:`Mempool Library <Mempool_Library>` spreads the addresses of objects among memory channels.\n \n+Locking memory pages\n+~~~~~~~~~~~~~~~~~~~~\n+The underlying operating system is allowed to load/unload memory pages at its own discretion.\n+These page loads could impact the performance, as the process is on hold when the kernel fetches them.\n+\n+To avoid these you could pre-load, and lock them into memory with the mlockall() call.\n+\n+.. code-block:: c\n+\n+    if (mlockall(MCL_CURRENT | MCL_FUTURE)) {\n+        RTE_LOG(NOTICE, USER1, \"mlockall() failed with error \\\"%s\\\"\\n\",\n+                strerror(errno));\n+    }\n+\n Communication Between lcores\n ----------------------------\n \n",
    "prefixes": [
        "dpdk-dev"
    ]
}