SDK:C/make very slow with OS4.1FE (SOLVED)

Have a question about our Software Developer Kit? Ask them here.

Re: SDK:C/make very slow with OS4.1FE

Postby ssolie » Thu Aug 27, 2015 5:04 pm

xenic wrote:Testing with the above makefile seems to indicate that the problem with make involves executing commands and not the gcc compiler commands themselves. The time difference is obviously a lot more than a few microseconds per command.

Note that GNU make does have to do a lot of work to properly set up things for each command that is executed. This means using a lot of the features of IDOS->CreateNewProc() that may not be used as much by other programs. Given we've had no luck with any other DOS commands, I'd focus on CreateNewProc() if you have some time to mess with things.
AmigaOS Development Team Lead
Be authentic. Get AmigaOS.
User avatar
ssolie
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1000
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Re: SDK:C/make very slow with OS4.1FE

Postby broadblues » Thu Aug 27, 2015 9:06 pm

(using the timer command from os4depot - e.g. timer make).


Don't bother with such tools that add another level of confusion just type after you run make:

Code: Select all

make -f makefile
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
ram:test.xyz  Deleted
10.RAM Disk:> set
Process          10
RC               0
Result2          0
_LastCommand     make
_LastCommandArgs -f makefile
_mchar           ||
_pchar           |
_RunTime         10.626666
_ShellVersion    53.15
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 478
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: SDK:C/make very slow with OS4.1FE

Postby nbache » Fri Aug 28, 2015 12:51 am

broadblues wrote:
(using the timer command from os4depot - e.g. timer make).
Don't bother with such tools that add another level of confusion just type after you run make:
Or simply use e.g. this in your Shell-startup:

Code: Select all
prompt "*E[33m%N.%S %R %W [%E] *`C:Date` *n$ *E[31m"
Best regards,

Niels
User avatar
nbache
Beta Tester
Beta Tester
 
Posts: 1210
Joined: Mon Dec 20, 2010 8:25 pm
Location: Copenhagen, Denmark

Re: SDK:C/make very slow with OS4.1FE

Postby colinw » Fri Aug 28, 2015 2:55 am

ssolie wrote:Note that GNU make does have to do a lot of work to properly set up things for each command that is executed.
This means using a lot of the features of IDOS->CreateNewProc() that may not be used as much by other programs.
Given we've had no luck with any other DOS commands, I'd focus on CreateNewProc() if you have some time
to mess with things.



You were spot on, it's FIXED, the bug was in CreateNewProc().
There's barely 1 seconds in a minute difference now. (with and without the FFS: path)
User avatar
colinw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 160
Joined: Mon Aug 15, 2011 10:20 am
Location: Brisbane, QLD. Australia.

Re: SDK:C/make very slow with OS4.1FE

Postby zzd10h » Fri Aug 28, 2015 12:20 pm

@ColinW

Great that you find the problem !

Could this bug be related to general slowdown problem that some users encounters with FE (no problem under 4.1.6) ?

viewtopic.php?f=14&t=2812&start=40#p31675

Thank you
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: SDK:C/make very slow with OS4.1FE

Postby xenic » Fri Aug 28, 2015 3:28 pm

ssolie wrote:The GPL source code is included with every SDK so no need to bother me. :-)

I found the source in old SDKs but can't find it in recent SDKs. Where is it located in the current public SDK?
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1047
Joined: Sun Jun 19, 2011 1:06 am

Re: SDK:C/make very slow with OS4.1FE

Postby xenic » Fri Aug 28, 2015 3:36 pm

colinw wrote:You were spot on, it's FIXED, the bug was in CreateNewProc().
There's barely 1 seconds in a minute difference now. (with and without the FFS: path)

Thanks Colin. Every bug-fix helps make OS4 better.
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1047
Joined: Sun Jun 19, 2011 1:06 am

Re: SDK:C/make very slow with OS4.1FE

Postby ssolie » Fri Aug 28, 2015 4:26 pm

colinw wrote:
ssolie wrote:Note that GNU make does have to do a lot of work to properly set up things for each command that is executed.
This means using a lot of the features of IDOS->CreateNewProc() that may not be used as much by other programs.
Given we've had no luck with any other DOS commands, I'd focus on CreateNewProc() if you have some time
to mess with things.

You were spot on, it's FIXED, the bug was in CreateNewProc().
There's barely 1 seconds in a minute difference now. (with and without the FFS: path)

Just saw the commit and that was a sneaky one!

@all
We are working on an update package for 4.1 Final Edition so I expect this fix will be in there. In the mean time, you have a workaround although not a great one.
AmigaOS Development Team Lead
Be authentic. Get AmigaOS.
User avatar
ssolie
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1000
Joined: Mon Dec 20, 2010 9:51 pm
Location: Canada

Re: SDK:C/make very slow with OS4.1FE (SOLVED)

Postby zzd10h » Fri Aug 28, 2015 10:46 pm

@SSolie
"@all
We are working on an update package for 4.1 Final Edition so I expect this fix will be in there. In the mean time, you have a workaround although not a great one."

Is this fix or this planned update will adress the following problem (see below) ?
Thx

"@ColinW
Great that you find the problem !
Could this bug be related to general slowdown problem that some users encounters with FE (no problem under 4.1.6) ?
viewtopic.php?f=14&t=2812&start=40#p31675
Thank you"
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: SDK:C/make very slow with OS4.1FE

Postby colinw » Sat Aug 29, 2015 12:18 am

zzd10h wrote:@ColinW
Great that you find the problem !
Could this bug be related to general slowdown problem that some users encounters with FE (no problem under 4.1.6) ?
viewtopic.php?f=14&t=2812&start=40#p31675
Thank you


Unlikely, the problem didn't apper to involve anything described, this issue was primarily a task priority loading and
competing issue when a special set of requirements were met, "make" just happened to create that special situation.
This quirk has been in there for years but no-one noticed before because they always had at least one dospacket based
filesystem partition in their shell path.

As Steven said, there will be updates available soon for these sort of post F.E issues.
User avatar
colinw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 160
Joined: Mon Aug 15, 2011 10:20 am
Location: Brisbane, QLD. Australia.

PreviousNext

Return to SDK Support

Who is online

Users browsing this forum: No registered users and 2 guests