Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

共享内存使用定长Block,不会导致segment频繁recreate 和内存的大量浪费吗? #7334

Closed
nelsonjin opened this issue Mar 19, 2019 · 2 comments
Assignees
Labels
Module:Cyber Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community

Comments

@nelsonjin
Copy link

  1. 共享内存使用定长Block,不会导致segment频繁recreate 和内存的大量浪费吗?
  2. 如果shm写速度很快, 读非常缓慢,是否会导致未读的block 被直接覆盖写呢?

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 14.04):
  • Apollo installed from (source or binary):
  • Apollo version (1.0, 1.5, 2.0, 2.5, 3.0):

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:

Supporting materials (screenshots, command lines, code/script snippets):

@zhongjunni zhongjunni self-assigned this Mar 19, 2019
@zhongjunni zhongjunni added Module:Cyber Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community labels Mar 19, 2019
@zhongjunni
Copy link
Contributor

  1. 共享内存使用定长Block,不会导致segment频繁recreate 和内存的大量浪费吗?
  2. 如果shm写速度很快, 读非常缓慢,是否会导致未读的block 被直接覆盖写呢?

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 14.04):
  • Apollo installed from (source or binary):
  • Apollo version (1.0, 1.5, 2.0, 2.5, 3.0):

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:

Supporting materials (screenshots, command lines, code/script snippets):

Hi nelsonjin, thanks for your questions! The answers are listed as following:

  1. Firstly, we create shared memory areas only when there is interprocess communication. Secondly, the size of segment is related to the size of message, recreation only happens when the message grows too bigger.
  2. If the writing speed is faster than the reading speed, the unread block will be overwritten. In the current vehicle environment, there will be no case where the reading speed is slower than the writing speed.

Thanks again! Welcome to continue the discussion.

@zhongjunni
Copy link
Contributor

Currently closing this issue. @nelsonjin if you have any additional questions, feel free to reopen it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module:Cyber Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community
Projects
None yet
Development

No branches or pull requests

2 participants