Skip to content

Conversation

@barsnick
Copy link
Contributor

  • fix example output
  • fix copy command
  • add note about parallel jobs

@barsnick barsnick requested review from FaHaGit and lategoodbye June 27, 2025 11:26

.. code-block:: console
make install -j4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the problem, but in my VM case ( nproc = 2 ) this suggestion would make things worse. Sure you mention to lower the number, but a newbie isn't aware how to figure the right one.

So what about dropping the j parameter for the low memory case?
Or at least explain what is little RAM?
Or mention that VM is usually very constraint regarding resources?

Copy link
Contributor Author

@barsnick barsnick Jul 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, a fixed number may make things worse.

In fact, while this often happens in our VMs, this change addresses a case noticed both by us and by a customer in WSL2: The PC has 12 cores, and assigns all 12 to WSL2, but only reserves limited RAM. This is bound to fail. (The customer just repeated the build until it succeeded.)

Let's find a different way to address this.

Copy link
Member

@lategoodbye lategoodbye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except of the comment

@barsnick barsnick force-pushed the everest/ccc-development-minor-fixes branch from 2cfc695 to 58a009d Compare August 11, 2025 09:55
@barsnick
Copy link
Contributor Author

I dropped the commit about parallel compilation. We need to revise this section later, in a separate PR.

Also add `-v` verbose flag to `cp` to visualize what actually happens.

Signed-off-by: Moritz Barsnick <moritz.barsnick@chargebyte.com>
Signed-off-by: Moritz Barsnick <moritz.barsnick@chargebyte.com>
@barsnick barsnick force-pushed the everest/ccc-development-minor-fixes branch from 58a009d to 908cd9d Compare August 11, 2025 09:57
@lategoodbye lategoodbye merged commit b01a57a into everest/charge_control_c Aug 11, 2025
1 check passed
@mhei mhei deleted the everest/ccc-development-minor-fixes branch August 22, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants