@techreport{oai:ipsj.ixsq.nii.ac.jp:00237617, author = {Jianxuan, Ding and Koichiro, Kiji and Akihiro, Saiki and Keiji, Kimura and Jianxuan, Ding and Koichiro, Kiji and Akihiro, Saiki and Keiji, Kimura}, issue = {23}, month = {Aug}, note = {Enclave-type trusted execution environments (TEEs) have been used in Intel SGX, ARM OP-TEE, and RISC-V Keystone. Data transfer between a host and an Enclave currently requires costly serialization for pointer-based data structures. We have proposed a fast data transfer technique by enclosing data structures within a memory pool to mitigate the data transfer overhead. However, it also introduced a spatial overhead since it uses fat pointers consisting of a pool ID and an offset in the pool. This paper proposes memory-efficient portable pointers within a memory pool. We implement a subset of C++ STL utilizing the proposed technique and evaluate the performance on an Intel SGX platform. The evaluation shows that the method can improve the speed of transferring C++ deque, map, unordered map, and forward list up to 1.16, 2.50, 2.51, and 3.02 times, respectively, compared to the fat pointer method., Enclave-type trusted execution environments (TEEs) have been used in Intel SGX, ARM OP-TEE, and RISC-V Keystone. Data transfer between a host and an Enclave currently requires costly serialization for pointer-based data structures. We have proposed a fast data transfer technique by enclosing data structures within a memory pool to mitigate the data transfer overhead. However, it also introduced a spatial overhead since it uses fat pointers consisting of a pool ID and an offset in the pool. This paper proposes memory-efficient portable pointers within a memory pool. We implement a subset of C++ STL utilizing the proposed technique and evaluate the performance on an Intel SGX platform. The evaluation shows that the method can improve the speed of transferring C++ deque, map, unordered map, and forward list up to 1.16, 2.50, 2.51, and 3.02 times, respectively, compared to the fat pointer method.}, title = {Enhancing Memory Pool Management for Efficient Data Transfer between Host and Enclave}, year = {2024} }