Re: Multi-Threaded make

2012-11-29 Thread David G . Miller
JD gmail.com> writes: > For the last time: > rpmbuild has no -j anything option!!! > JD - Calm down. Have a glass of wine or a beer or whatever. Noone is saying rpmbuild has a -j option. Several of us are trying to explain to you that programs like rpmbuild can do things that the end user m

Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 29 Nov 2012, David G. Miller wrote: > Setting -j to be equal to the number of cores/CPUs is just playing it > safe. Yes, this is the default behavior of rpmbuild: %_smp_mflags is defined in /usr/lib/rpm/redhat/macros: %_smp_mflags %([ -z "$

Re: Multi-Threaded make

2012-11-29 Thread JD
On 11/29/2012 03:48 PM, David G. Miller wrote: Gabriel VLASIU vlasiu.net> writes: On Thu, 29 Nov 2012, JD wrote: That does not make sense. I have a unicore!! An old Athlon64 3700+, In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have exactly only one "cc1". and ye

Re: Multi-Threaded make

2012-11-29 Thread David G . Miller
Gabriel VLASIU vlasiu.net> writes: > > > On Thu, 29 Nov 2012, JD wrote: > > > That does not make sense. > > > I have a unicore!! An old Athlon64 3700+, > In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have > exactly only one "cc1". > > > and yet ps -ef shows up to 4 m

Re: Multi-Threaded make

2012-11-29 Thread Cameron Simpson
On 29Nov2012 19:11, Gabriel VLASIU wrote: | On Thu, 29 Nov 2012, JD wrote: | > That does not make sense. | :-) | | > I have a unicore!! An old Athlon64 3700+, | In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have | exactly only one "cc1". | | Just run: rpmbuild -E '%{?_smp

Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 29 Nov 2012, JD wrote: > That does not make sense. :-) > I have a unicore!! An old Athlon64 3700+, In this case %{?_smp_mflags} is expanded to "-j1" or "" and you will have exactly only one "cc1". Just run: rpmbuild -E '%{?_smp_mflags}' and

Re: Multi-Threaded make

2012-11-29 Thread JD
On 11/29/2012 04:29 AM, Gabriel VLASIU wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 29 Nov 2012, Gabriel VLASIU wrote: You can see multiple make proccesses. But only 2 (in my case) do the real work: user1 22073 12810 0 13:13 pts/000:00:00 make -f scripts/Makefile.build

Re: Multi-Threaded make

2012-11-29 Thread JD
Thunderbird/15.0.1 X-Spam-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,SPF_PASS,T_DKIM_INVALID autolearn=ham version=3.3.1 Subject: Multi-Threaded make While building the kernel from source RPM, I run the

Re: Multi-Threaded make

2012-11-29 Thread JD
On 11/29/2012 03:04 AM, Cameron Simpson wrote: On 28Nov2012 21:16, JD wrote: | On 11/28/2012 08:21 PM, Cameron Simpson wrote: | > On 28Nov2012 15:37, JD wrote: | > | While building the kernel from source RPM, I run | > | the command ps -ef | grep make in another terminal, | > | and I do see th

Re: Multi-Threaded make

2012-11-29 Thread Bruno Wolff III
On Wed, Nov 28, 2012 at 23:10:40 -0700, JD wrote: As a side note to Bruno, who wanted me to build and try this kernel: I will reboot immediately after sending this message with this kernel I just built. I am not having kswapd issues any more with the version of that kernel from the rawhide

Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 29 Nov 2012, Gabriel VLASIU wrote: > You can see multiple make proccesses. But only 2 (in my case) do the real > work: > user1 22073 12810 0 13:13 pts/000:00:00 make -f scripts/Makefile.build > obj=fs > user1 24474 22073 0 13:15 pts/0

Re: Multi-Threaded make

2012-11-29 Thread Gabriel VLASIU
us: No, score=-4.7 required=5.0 tests=AWL,BAYES_00, > DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED, > RP_MATCHES_RCVD,SPF_PASS,T_DKIM_INVALID autolearn=ham version=3.3.1 > Subject: Multi-Threaded make > > While building the kernel from source RPM, I run &g

Re: Multi-Threaded make

2012-11-29 Thread Cameron Simpson
On 28Nov2012 21:16, JD wrote: | On 11/28/2012 08:21 PM, Cameron Simpson wrote: | > On 28Nov2012 15:37, JD wrote: | > | While building the kernel from source RPM, I run | > | the command ps -ef | grep make in another terminal, | > | and I do see that 4 make processes are running, with | > | each o

Re: Multi-Threaded make

2012-11-28 Thread Heinz Diehl
On 29.11.2012, John Wendel wrote: > I think you're seeing something seriously broken if your builds are taking a > huge amount of time. That's surely an oversimplification. Build speed depends on several factors, e.g. how many options you have enabled in your .config has huge impact. You can't c

Re: Multi-Threaded make

2012-11-28 Thread JD
On 11/28/2012 10:48 PM, John Wendel wrote: On 11/28/2012 08:16 PM, JD wrote: On 11/28/2012 08:21 PM, Cameron Simpson wrote: On 28Nov2012 15:37, JD wrote: | While building the kernel from source RPM, I run | the command ps -ef | grep make in another terminal, | and I do see that 4 make proces

Re: Multi-Threaded make

2012-11-28 Thread John Wendel
On 11/28/2012 08:16 PM, JD wrote: On 11/28/2012 08:21 PM, Cameron Simpson wrote: On 28Nov2012 15:37, JD wrote: | While building the kernel from source RPM, I run | the command ps -ef | grep make in another terminal, | and I do see that 4 make processes are running, with | each one building obj

Re: Multi-Threaded make

2012-11-28 Thread JD
On 11/28/2012 08:21 PM, Cameron Simpson wrote: On 28Nov2012 15:37, JD wrote: | While building the kernel from source RPM, I run | the command ps -ef | grep make in another terminal, | and I do see that 4 make processes are running, with | each one building objects for a different kernel source

Re: Multi-Threaded make

2012-11-28 Thread Cameron Simpson
On 28Nov2012 15:37, JD wrote: | While building the kernel from source RPM, I run | the command ps -ef | grep make in another terminal, | and I do see that 4 make processes are running, with | each one building objects for a different kernel source | directory. | | However, something else seems to

Multi-Threaded make

2012-11-28 Thread JD
While building the kernel from source RPM, I run the command ps -ef | grep make in another terminal, and I do see that 4 make processes are running, with each one building objects for a different kernel source directory. However, something else seems to be single threaded which is causing the hug