Branch: refs/heads/master Home: https://github.com/Linaro/odp Commit: 1d5c2ffab0051390641628a458f657c49ea54d41 https://github.com/Linaro/odp/commit/1d5c2ffab0051390641628a458f657c49ea54d41 Author: Maxim Uvarov <maxim.uva...@linaro.org> Date: 2018-10-09 (Tue, 09 Oct 2018)
Changed paths: M platform/linux-generic/odp_ishmphy.c Log Message: ----------- linux-gen: shm: do not print map error map error just spams output screen and it's impossible to see anything in the log. No need this extra debug print. It's ok if memory can not be allocated in HP and reservation fails to normal pages. Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org> Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org> Commit: 65f2959da164c4fed23b713c99842213c7ab04e1 https://github.com/Linaro/odp/commit/65f2959da164c4fed23b713c99842213c7ab04e1 Author: Maxim Uvarov <maxim.uva...@linaro.org> Date: 2018-10-09 (Tue, 09 Oct 2018) Changed paths: M platform/linux-generic/include/odp_shm_internal.h M platform/linux-generic/odp_classification.c M platform/linux-generic/odp_crypto_null.c M platform/linux-generic/odp_crypto_openssl.c M platform/linux-generic/odp_ipsec_events.c M platform/linux-generic/odp_ipsec_sad.c M platform/linux-generic/odp_ishm.c M platform/linux-generic/odp_packet_io.c M platform/linux-generic/odp_pool.c M platform/linux-generic/odp_queue_basic.c M platform/linux-generic/odp_queue_lf.c M platform/linux-generic/odp_schedule_basic.c M platform/linux-generic/odp_shared_memory.c M platform/linux-generic/odp_thread.c Log Message: ----------- linux-gen: do not use huge pages for internal allocations Some linux-generic internal shared memory allocations have to be in normal pages due to small required data. Relaying on odp_sys_huge_page_size() is not really correct, because call returns default huge page size. But default huge page size is definned in kernel boot parameter as: default_hugepagesz=1G hugepagesz=1G hugepages=2 So in that case for small allocation linux-gen will create 1GB huge page. This patch introduces internal flag to shm funtion to allocate hp. This patch remains allowing changes on top of it: For now pools are in huge page. And for apps with small pool it's big overhead of unused memory. We should take into account odp_sys_huge_page_size_all() call and found best sized huge pages. https://bugs.linaro.org/show_bug.cgi?id=3954 Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org> Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org> Compare: https://github.com/Linaro/odp/compare/406054d9c9ce...65f2959da164 **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.