#Slow WSL compiles

1 messages ยท Page 1 of 1 (latest)

graceful lintel
#

cpuinfo for one core. Do you need to see all of them?

cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
microcode       : 0xffffffff
cpu MHz         : 1799.999
cache size      : 6144 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 21
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves md_clear flush_l1d arch_capabilities
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed gds
bogomips        : 3599.99
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:
#

There are 8 cores by the way

#

Sorry, 4 cores, but 8 logical processors or whatever the terminology is

proud orbit
#

have you tried make -j or make -j4. That will use multiple cores at once

graceful lintel
#

I've done -j12 so far, but I guess thats maybe too much

proud orbit
#

too much won't make that much difference. something else would appear to be wrong. If the fan is not working well or a filter is clogged, it could be overheating and clocking down. There are tools in Windows that will monitor the CPU temp

#

this is a laptop CPU, so it's not that high speed, but it shouldn't be that bad

#

you might consider making the laptop be dual boot to Ubuntu if you don't have another use for it

mental spoke
#

folks have also use the github hosted workspace for circuitpython dev too I think

graceful lintel
#

The ubuntu partition is not on an SSD though, if I remember correctly.

mental spoke
#

Slow WSL compiles

graceful lintel
#

It was a bit faster this last time I tried to compile. Took around 5 min before I got a syntax warning/compiler error. Havent been able to see any problems with CPU temperature

mental spoke
#

repeated builds should be pretty fast. what is the warning you got?

graceful lintel
#

Yeah, that's what I was hoping for, however this is the first time (in 5 or so attempts) I've been able to get feedback within a "timely manner" on my poor code, so I was just about to give up entirely. I guess you can tell I'm not that used to C++ programming, so I rely heavily on the compiler telling me that something is wrong on line x ๐Ÿ˜›

#

In this case it was this error if it matters:

../../shared-module/synthio/__init__.c:214:24: error: incompatible types when assigning to type '_Bool' from type 'synthio_block_slot_t' {aka 'struct synthio_block_slot'}
  214 |         playback_dir = note->playback_direction;
mental spoke
#

After doing a clean it will be slower

#

There is an analysis at the start of the build that may be slow to redo too if it breaks then

#

usually due to incorrect header includes

graceful lintel
#

Yeah, I didn't really do much except adding semicolons and such between my builds, which is why I was looking for a faster way to build. I've just started another build now, so I'll see if the problem has sorted itself out in a little while.

proud orbit
#

and make sure you are really running on the SSD

graceful lintel
#

Nothing wrong with the temperature at least. And I am running on the SDD:

#

Took around 5 minutes this time (and it actually compiled ๐Ÿ˜ฒ )

proud orbit
#

which board are you compiling?

graceful lintel
#

seeeduino_xiao_rp2040

proud orbit
#

i don't understand why it was 5 minutes now and 30 minutes previously. Was the 5 minutes from a clean build?

graceful lintel
#

At least one of them was, but I did those last week so I don't remember all the details. This time I closed pretty much everything else I was doing on the computer too, so that may have some part in the explanation.

proud orbit
#

also is windows all updated? Is it win10 or 11?

graceful lintel
#

Win 10. Should be up to date