* Building nodejs with only 16GB RAM
@ 2025-06-20 4:34 MOHAMMED HASSAN
2025-06-20 4:40 ` [yocto] " Federico Pellegrin
0 siblings, 1 reply; 5+ messages in thread
From: MOHAMMED HASSAN @ 2025-06-20 4:34 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Hi all,
I have to build nodejs which I noticed takes 32GB RAM. Unfortunately, I
only have 16GB and can't upgrade. So I want to know if I can increase the
processor cores and hopefully that might help. I am using the Lenovo
Thinkpad P15v laptop. Let me know if this can work or any one has tried it
here.
Thanks
[-- Attachment #2: Type: text/html, Size: 374 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Building nodejs with only 16GB RAM
2025-06-20 4:34 Building nodejs with only 16GB RAM MOHAMMED HASSAN
@ 2025-06-20 4:40 ` Federico Pellegrin
2025-06-20 4:42 ` MOHAMMED HASSAN
0 siblings, 1 reply; 5+ messages in thread
From: Federico Pellegrin @ 2025-06-20 4:40 UTC (permalink / raw)
To: yocto, hassanchattarki
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]
Hi,
Increasing processor cores will usually make things *worse* as more
processes may be spawned at the same time and therefore more RAM used.
Instead you could try to reduce numer of parallel processes
(see BB_NUMBER_THREADS and PARALLEL_MAKE for example) albeit of course this
will make the compilation (even) slower.
Another possibility: create a swap file/partition on the system. Also this
will make things slower, but you will have "more RAM".
Cheers,
Federico
Il giorno ven 20 giu 2025 alle ore 06:34 MOHAMMED HASSAN via
lists.yoctoproject.org <hassanchattarki=gmail.com@lists.yoctoproject.org>
ha scritto:
> Hi all,
> I have to build nodejs which I noticed takes 32GB RAM. Unfortunately, I
> only have 16GB and can't upgrade. So I want to know if I can increase the
> processor cores and hopefully that might help. I am using the Lenovo
> Thinkpad P15v laptop. Let me know if this can work or any one has tried it
> here.
>
> Thanks
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#65528):
> https://lists.yoctoproject.org/g/yocto/message/65528
> Mute This Topic: https://lists.yoctoproject.org/mt/113737892/5117409
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> fede@evolware.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 2354 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Building nodejs with only 16GB RAM
2025-06-20 4:40 ` [yocto] " Federico Pellegrin
@ 2025-06-20 4:42 ` MOHAMMED HASSAN
2025-06-20 5:27 ` Ashish Mishra
0 siblings, 1 reply; 5+ messages in thread
From: MOHAMMED HASSAN @ 2025-06-20 4:42 UTC (permalink / raw)
To: Federico Pellegrin; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1788 bytes --]
Hi Federico,
In notice that do_compile is the only task running and then it would fail.
Checking log errors on stack overflow indicate RAM needs to be increased.
Maybe I can build nodejs on my desktop and then move the sstate-cache, will
that work?
On Fri, 20 Jun 2025 at 10:11 AM, Federico Pellegrin <fede@evolware.org>
wrote:
>
> Hi,
> Increasing processor cores will usually make things *worse* as more
> processes may be spawned at the same time and therefore more RAM used.
>
> Instead you could try to reduce numer of parallel processes
> (see BB_NUMBER_THREADS and PARALLEL_MAKE for example) albeit of course this
> will make the compilation (even) slower.
>
> Another possibility: create a swap file/partition on the system. Also this
> will make things slower, but you will have "more RAM".
>
> Cheers,
> Federico
>
>
>
> Il giorno ven 20 giu 2025 alle ore 06:34 MOHAMMED HASSAN via
> lists.yoctoproject.org <hassanchattarki=gmail.com@lists.yoctoproject.org>
> ha scritto:
>
>> Hi all,
>> I have to build nodejs which I noticed takes 32GB RAM. Unfortunately, I
>> only have 16GB and can't upgrade. So I want to know if I can increase the
>> processor cores and hopefully that might help. I am using the Lenovo
>> Thinkpad P15v laptop. Let me know if this can work or any one has tried it
>> here.
>>
>> Thanks
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#65528):
>> https://lists.yoctoproject.org/g/yocto/message/65528
>> Mute This Topic: https://lists.yoctoproject.org/mt/113737892/5117409
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
>> fede@evolware.org]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
[-- Attachment #2: Type: text/html, Size: 3637 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Building nodejs with only 16GB RAM
2025-06-20 4:42 ` MOHAMMED HASSAN
@ 2025-06-20 5:27 ` Ashish Mishra
2025-07-09 6:25 ` MOHAMMED HASSAN
0 siblings, 1 reply; 5+ messages in thread
From: Ashish Mishra @ 2025-06-20 5:27 UTC (permalink / raw)
To: yocto, hassanchattarki; +Cc: Federico Pellegrin
[-- Attachment #1: Type: text/plain, Size: 2468 bytes --]
Hi Mohammed ,
I faced a similar issue while working with yocto scarthgap with 16GB RAM.
I tried to increase the swap area of my laptop & the build goes fine (takes
around 2 hour )
but the build goes fine .
Can you try to check by increasing the swap area.
3 │ sudo dd if=/dev/zero of=/extraswap bs=8M count=1024
4 │ sudo chmod 600 /extraswap
5 │ sudo mkswap /extraswap
6 │ sudo swapon /extraswap
7 │ free -m
Thanks ,
Ashish
On Fri, Jun 20, 2025 at 10:13 AM MOHAMMED HASSAN via lists.yoctoproject.org
<hassanchattarki=gmail.com@lists.yoctoproject.org> wrote:
> Hi Federico,
> In notice that do_compile is the only task running and then it would fail.
> Checking log errors on stack overflow indicate RAM needs to be increased.
> Maybe I can build nodejs on my desktop and then move the sstate-cache,
> will that work?
>
>
> On Fri, 20 Jun 2025 at 10:11 AM, Federico Pellegrin <fede@evolware.org>
> wrote:
>
>>
>> Hi,
>> Increasing processor cores will usually make things *worse* as more
>> processes may be spawned at the same time and therefore more RAM used.
>>
>> Instead you could try to reduce numer of parallel processes
>> (see BB_NUMBER_THREADS and PARALLEL_MAKE for example) albeit of course this
>> will make the compilation (even) slower.
>>
>> Another possibility: create a swap file/partition on the system. Also
>> this will make things slower, but you will have "more RAM".
>>
>> Cheers,
>> Federico
>>
>>
>>
>> Il giorno ven 20 giu 2025 alle ore 06:34 MOHAMMED HASSAN via
>> lists.yoctoproject.org <hassanchattarki=gmail.com@lists.yoctoproject.org>
>> ha scritto:
>>
>>> Hi all,
>>> I have to build nodejs which I noticed takes 32GB RAM. Unfortunately, I
>>> only have 16GB and can't upgrade. So I want to know if I can increase the
>>> processor cores and hopefully that might help. I am using the Lenovo
>>> Thinkpad P15v laptop. Let me know if this can work or any one has tried it
>>> here.
>>>
>>> Thanks
>>>
>>>
>>>
>>>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#65530):
> https://lists.yoctoproject.org/g/yocto/message/65530
> Mute This Topic: https://lists.yoctoproject.org/mt/113737892/4806067
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> ashishm@mvista.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 4653 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Building nodejs with only 16GB RAM
2025-06-20 5:27 ` Ashish Mishra
@ 2025-07-09 6:25 ` MOHAMMED HASSAN
0 siblings, 0 replies; 5+ messages in thread
From: MOHAMMED HASSAN @ 2025-07-09 6:25 UTC (permalink / raw)
To: Ashish Mishra; +Cc: yocto, Federico Pellegrin
[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]
Tried and it worked for yocto 3 sdk. Had around 22gb ram allocated in vm
ubuntu.
Thanks
On Fri, 20 Jun 2025 at 10:58 AM, Ashish Mishra <ashishm@mvista.com> wrote:
> Hi Mohammed ,
>
> I faced a similar issue while working with yocto scarthgap with 16GB RAM.
>
> I tried to increase the swap area of my laptop & the build goes fine
> (takes around 2 hour )
> but the build goes fine .
>
> Can you try to check by increasing the swap area.
> 3 │ sudo dd if=/dev/zero of=/extraswap bs=8M count=1024
> 4 │ sudo chmod 600 /extraswap
> 5 │ sudo mkswap /extraswap
> 6 │ sudo swapon /extraswap
> 7 │ free -m
>
> Thanks ,
> Ashish
>
>
>
>
> On Fri, Jun 20, 2025 at 10:13 AM MOHAMMED HASSAN via
> lists.yoctoproject.org <hassanchattarki=gmail.com@lists.yoctoproject.org>
> wrote:
>
>> Hi Federico,
>> In notice that do_compile is the only task running and then it would
>> fail. Checking log errors on stack overflow indicate RAM needs to be
>> increased.
>> Maybe I can build nodejs on my desktop and then move the sstate-cache,
>> will that work?
>>
>>
>> On Fri, 20 Jun 2025 at 10:11 AM, Federico Pellegrin <fede@evolware.org>
>> wrote:
>>
>>>
>>> Hi,
>>> Increasing processor cores will usually make things *worse* as more
>>> processes may be spawned at the same time and therefore more RAM used.
>>>
>>> Instead you could try to reduce numer of parallel processes
>>> (see BB_NUMBER_THREADS and PARALLEL_MAKE for example) albeit of course this
>>> will make the compilation (even) slower.
>>>
>>> Another possibility: create a swap file/partition on the system. Also
>>> this will make things slower, but you will have "more RAM".
>>>
>>> Cheers,
>>> Federico
>>>
>>>
>>>
>>> Il giorno ven 20 giu 2025 alle ore 06:34 MOHAMMED HASSAN via
>>> lists.yoctoproject.org <hassanchattarki=gmail.com@lists.yoctoproject.org>
>>> ha scritto:
>>>
>>>> Hi all,
>>>> I have to build nodejs which I noticed takes 32GB RAM. Unfortunately, I
>>>> only have 16GB and can't upgrade. So I want to know if I can increase the
>>>> processor cores and hopefully that might help. I am using the Lenovo
>>>> Thinkpad P15v laptop. Let me know if this can work or any one has tried it
>>>> here.
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#65530):
>> https://lists.yoctoproject.org/g/yocto/message/65530
>> Mute This Topic: https://lists.yoctoproject.org/mt/113737892/4806067
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
>> ashishm@mvista.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
[-- Attachment #2: Type: text/html, Size: 5443 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-07-09 6:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 4:34 Building nodejs with only 16GB RAM MOHAMMED HASSAN
2025-06-20 4:40 ` [yocto] " Federico Pellegrin
2025-06-20 4:42 ` MOHAMMED HASSAN
2025-06-20 5:27 ` Ashish Mishra
2025-07-09 6:25 ` MOHAMMED HASSAN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).