From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.jd.com (smtp.jd.com [58.83.206.59]) by dpdk.org (Postfix) with ESMTP id 66ABB2BCE for ; Sun, 11 Nov 2018 03:19:49 +0100 (CET) Received: from BJMAILD1MBX117.360buyAD.local (172.31.0.117) by hub04.360buyAD.local (172.17.27.18) with Microsoft SMTP Server (TLS) id 14.3.361.1; Sun, 11 Nov 2018 10:19:36 +0800 Received: from BJMAILD1MBX115.360buyAD.local (172.31.0.115) by BJMAILD1MBX117.360buyAD.local (172.31.0.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Sun, 11 Nov 2018 10:19:35 +0800 Received: from BJMAILD1MBX115.360buyAD.local ([fe80::55b8:6c4e:11da:f200]) by BJMAILD1MBX115.360buyAD.local ([fe80::55b8:6c4e:11da:f200%26]) with mapi id 15.01.1466.003; Sun, 11 Nov 2018 10:19:35 +0800 From: =?utf-8?B?6IyD5bu65piO?= To: "Burakov, Anatoly" , jianmingfan , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] mem: accelerate dpdk program startup by reuse page from page cache Thread-Index: AQHUeA39qen2FKmObUiproHjnw7HE6VG1x+AgAAcn4CAAuQYIA== Date: Sun, 11 Nov 2018 02:19:35 +0000 Message-ID: <6ea202d18d574a24a2028a766ec62559@jd.com> References: <20181109075830.27265-1-jianmingfan@126.com> <20181109092338.30097-1-jianmingfan@126.com> <6a7fcafc-5ac7-417a-fea6-2fd33b8b6c90@intel.com> <357b1b24-68f8-2c83-ff42-6ea1dce11b9c@intel.com> In-Reply-To: <357b1b24-68f8-2c83-ff42-6ea1dce11b9c@intel.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.31.14.12] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 11 Nov 2018 20:32:41 +0100 Subject: [dpdk-dev] =?utf-8?b?562U5aSNOiAgW1BBVENIIHYyXSBtZW06IGFjY2VsZXJh?= =?utf-8?q?te_dpdk_program_startup_by_reuse_page_from_page_cache?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2018 02:19:50 -0000 SGksIEJ1cmFrb3YNCg0KICBUaGFua3MgdmVyeSBtdWNoIGZvciB5b3VyIHJlcGx5LiANCiANCiAg SSBydW4gdGhlIHRlc3RwbWQgZHBkazE4LjA4IG9uIG15IHJvdXRlciB3aXRoIDIwMEdCIGh1Z2Ug cGFnZSBjb25maWd1cmVkLg0KICBBbmQgZmluZCBpdCBzdGlsbCB0YWtlcyA1MHMgaW4gemVyb2lu ZyB0aGUgMjAwR0IgaHVnZSBwYWdlIGVhY2ggdGltZSB0aGUgcHJvZ3JhbSByZXN0YXJ0cy4NCiAg DQoNCiAgQXMgeW91IG1lbnRpb25lZCBhcHAgc2hhbGwgY2FsbHMgcnRlX2VhbF9jbGVhbnVwKCkg dG8gZG8gdGhlIGNsZWFudXAuDQogIEhvd2V2ZXIsIHRoaXMgYXBpIGlzIG5vdCBkZXNpZ25lZCB0 byBhY2NlbGVyYXRlIHN0YXJ0dXAgdGltZS4NCiAgPj4NCiAgICAgRHVyaW5nIHJ0ZV9lYWxfaW5p dCgpIEVBTCBhbGxvY2F0ZXMgbWVtb3J5IGZyb20gaHVnZXBhZ2VzIHRvIGVuYWJsZSBpdHMgY29y ZSBsaWJyYXJpZXMgdG8gcGVyZm9ybSB0aGVpciB0YXNrcy4NCgkgVGhlIHJ0ZV9lYWxfY2xlYW51 cCgpIGZ1bmN0aW9uIHJlbGVhc2VzIHRoZXNlIHJlc291cmNlcywgZW5zdXJpbmcgdGhhdCBubyBo dWdlcGFnZSBtZW1vcnkgaXMgbGVha2V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