RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Epperlein, Lutz (agendo) via 4D_Tech
Right, I see the individual cores, but I'm not able to get the part a certain application uses. The summary view shows me that. See this screenshot: 4D.exe is selected, the orange line in the topmost graph shows the use by 4D, but this line is absent on the other

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Jeffrey Kain via 4D_Tech
You can click it right click on the summary graph and have it display individual cores. > On Jan 31, 2019, at 4:31 AM, Epperlein, Lutz (agendo) via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Just out of curiosity, how can I visualize the use of the CPU cores on > Windows > using some

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Epperlein, Lutz (agendo) via 4D_Tech
Just out of curiosity, how can I visualize the use of the CPU cores on Windows using some inbuilt tools of the OS? The task manager shows a summary only. In the resource monitor I can see the use the total use of all cores by an application, not the use of individual cores. Regards Lutz

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Keisuke Miyako via 4D_Tech
preemptive mode for 4D methods is a 64-bit only feature. 32-bit version of 4D exists mainly for compatibility, speed is not the highest priority. it is still using the old altura library, the old cache manager, etc. of course, the web server, SQL server and database engine are preemptive even

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Christian Sakowski via 4D_Tech
> Are you really saying that I can mark a 4D method as preemptive capable and > use significant functionality of the plugins in a preemptive process? Yes, indeed it took some work to rewrite the code to make Plugin-Handles preemptive. -- Grüße/Regards, [heubach-media] | Christian Sakowski

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-31 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako, > if you feel you have reason to assign a CPU to an application, > there is CPU affinity (Google the word affinity)." Thanks for the tip > if you run 4D (64-bit, v17) normally on Windows, > the work will spread across multiple core naturally. Can you confirm that this is only with

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
Hi Neil, > On Jan 30, 2019, at 3:40 PM, Dennis, Neil wrote: > >> If a shared method is marked as preemptive capable, any shared method it >> uses must also be marked as preemptive capable. Otherwise 4D says the method >> further down in the call chain is not thread safe even if it has no

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
Hi Christian, That is really impressive since they seem like complex plugins that need a lot of 4D interaction and there are currently very few plugin API calls that are thread safe. Are you really saying that I can mark a 4D method as preemptive capable and use significant functionality of

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Christian Sakowski via 4D_Tech
> I'm not aware any commercial 4D plugin that works in preemptive mode. hmCal and hmReports are thread safe. -- Grüße/Regards, [heubach-media] | Christian Sakowski christian.sakow...@heubach-media.de Tel: +49/(0)40/52 10 59-23 > Am 30.01.2019 um 22:16 schrieb John DeSoi via 4D_Tech

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Keisuke Miyako via 4D_Tech
I hate to interject but will do anyway. I have a strong suspicion that you are going after the wrong target. OCI is not the reason your app is running on a single core. it is the fact that you are running an engined merged application under Citrix. had it been 4D Remote connecting to 4D Server,

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Keisuke Miyako via 4D_Tech
it is normally a good thing that work is spread across multiple cores. it prevents the CPU from over heating. a cooperative thread may use many cores, just not "at the same time". anyway, if you feel you have reason to assign a CPU to an application, there is CPU affinity (Google the word

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Tim, Now for me an important question: is 4D for Oci pre-emptive? In short: We use for 90% UI and 4D for OCI commands. How can I make use of more than 1 core? Nu colleague says Word and Excel also use more cores, so why can't we? Gr, Piotr I see, this is relatively new development - I

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Keisuke Miyako via 4D_Tech
in your case, it is mostly irrelevant whether 4D uses multiple cores or not. you only have one mouse pointer or one blinking cursor on the screen. you are not going to click multiple buttons at the same time, or type text on multiple windows at the same time. the dialog does not need to use

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Dennis, Neil via 4D_Tech
> If a shared method is marked as preemptive capable, any shared method it uses > must also be marked as preemptive capable. Otherwise 4D says the method > further down in the call chain is not thread safe even if it has no thread > unsafe commands. Wait, If the parent is marked preemptive the

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Chip Scheide via 4D_Tech
Right - "...that a thread safe method (call chain) in a component..." :) On Wed, 30 Jan 2019 15:33:27 -0600, John DeSoi via 4D_Tech wrote: > Chip, > > This is true, but there is some extra complexity involved with components: > > If a shared method is marked as preemptive capable, any shared

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
Chip, This is true, but there is some extra complexity involved with components: If a shared method is marked as preemptive capable, any shared method it uses must also be marked as preemptive capable. Otherwise 4D says the method further down in the call chain is not thread safe even if it

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
Yes, I was not trying to imply that all plugins are thread safe, only that it is possible to create one following the direction outlined in the SDK. It is supported and there are significant speedup benefits if you can make it work. I'm not aware any commercial 4D plugin that works in

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Chip Scheide via 4D_Tech
f John DeSoi > via 4D_Tech > Sent: Wednesday, January 30, 2019 12:49 PM > To: 4D iNug Technical <4d_tech@lists.4d.com> > Cc: John DeSoi > Subject: Re: Does 4D 64-bit Volume desktop use more than 1 core? > > Hi Tim, > > The header file in the publicly available SDK

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Timothy Penner via 4D_Tech
Subject: Re: Does 4D 64-bit Volume desktop use more than 1 core? Hi Tim, The header file in the publicly available SDK indicates which plugin API entry points are thread safe (currently a small number). https://github.com/4d/4D-Plugin-SDK See further discussion here including input from 4D Fr

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
Hi Tim, The header file in the publicly available SDK indicates which plugin API entry points are thread safe (currently a small number). https://github.com/4d/4D-Plugin-SDK See further discussion here including input from 4D France: > Yes the 4d plugin sdk allows to build preemptive ready

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Timothy Penner via 4D_Tech
John, Plugin development is not something 4D Tech Support usually handles, so I may have missed that - in either case, the docs seem like it is not possible... http://livedoc.4d.com/4D-Language-Reference-17/Processes/Preemptive-4D-processes.300-3730331.en.html#3687097 { Writing a thread-safe

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
In version 17 you can use plug-ins in preemptive mode if the plugin call is marked as thread safe. I converted my Postgres component/plugin to work in preemptive mode. Tests show 300% to 400% improvement over single core execution. See this lengthy thread on the forum for issues in converting

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Timothy Penner via 4D_Tech
Jim, > Piotr mentioned that they are using 4D OCI, not the 4D database. I haven’t > really kept up with the pre-emptive restrictions, but can plugins specify > that they can run pre-emptively? Given some of the other limitations I’d have > assumed plugins would be required to run in the

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Timothy Penner via 4D_Tech
> Subject: RE: Does 4D 64-bit Volume desktop use more than 1 core? > The NEW PROCESS command is able to spawn a Preemptive or Coopertive process; > this depends on the preemptive method property of the method that is called > by the NEW PROCESS command. Thanks Tim, Is thi

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Jim Crate via 4D_Tech
On Jan 30, 2019, at 12:07 PM, Timothy Penner via 4D_Tech <4d_tech@lists.4d.com> wrote: > >> I understand, but I think I am having a problem. >> Suppose our app depends heavily on UI (and it does) >> > > Simple approach: > > Have the UI spin off the work into a new pre-emptive process (or

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Dennis, Neil via 4D_Tech
> The NEW PROCESS command is able to spawn a Preemptive or Coopertive process; > this depends on the preemptive method property of the method that is called > by the NEW PROCESS command. Thanks Tim, Is this new with 4D v17? I see in the v17 docs it is documented that new process can run

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Timothy Penner via 4D_Tech
Neil, The NEW PROCESS command is able to spawn a Preemptive or Coopertive process; this depends on the preemptive method property of the method that is called by the NEW PROCESS command. -Tim ** 4D Internet Users Group (4D

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread John DeSoi via 4D_Tech
No, a normal process can be preemptive (started with New process or Executed on server) as long as the starting method is preemptive capable. John DeSoi, Ph.D. > On Jan 30, 2019, at 2:14 PM, Dennis, Neil via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I thought for a process to work on a

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Dennis, Neil via 4D_Tech
> If all that happens, that process will be scalable across cores. Did I miss something? I thought for a process to work on a separate core it needed to be a WORKER process and preemptive capable. So if you call new process it will not be preemptive. If you call worker it can be preemptive if

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Timothy Penner via 4D_Tech
de/ -Tim -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Piotr Chabot Stadhouders via 4D_Tech Sent: Wednesday, January 30, 2019 12:05 PM To: 4D iNug Technical <4d_tech@lists.4d.com> Cc: Piotr Chabot Stadhouders Subject: RE: Does 4D 64-bit Volume de

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Jeff, Thanks again for your answer. I understand, but I think I am having a problem. Suppose our app depends heavily on UI (and it does) Suppose our app starts 8 processes showing 8 dialogs showing all kind of variables and arrays, and that need to be refreshed every X seconds Then no UI

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Jeffrey Kain via 4D_Tech
No, not at all. You have to first mark the method that's called first from New Process as preemptive. That method, plus all methods called by that method, and all methods called by those methods, must be written in a preemptive-safe manner (i.e. no UI, no unsafe commands, no plug-ins). If all

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Lutz, Jeffrey, Thanks for your answers. So it is about using 64-bit, and writing preemptive-safe methods I see a lot of 4D commands turning into preemptive-safe commands, so that's good Now for me probably work has to be done, but I am confused what is needed. 1. We don't use 4D tables,

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Jeffrey Kain via 4D_Tech
Compiled 64-bit Volume Desktop can use more than one core, depending upon how you write your code. 64-bit 4D is required, as is being compiled, in the current implementation. You need to write preemptive-safe methods and your methods need to be marked as preemptive in the method properties.

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Epperlein, Lutz (agendo) via 4D_Tech
> So then the real questions are : > > * Is it correct that 4D Volume desktop uses only 1 core? No. > * How can I enable 4D Volume desktop to use all cores? No. There isn't such a switch. It is a bit more complicated, a short query for "core" on the knowledgebase kb.4d.com reveals:

RE: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Pat, Thanks for your answer. So then the real questions are : * Is it correct that 4D Volume desktop uses only 1 core? * How can I enable 4D Volume desktop to use all cores? Gr, Piotr Piotr I believe the "bitness" has more to do with how it uses RAM than cores. Pat On Wed, 30 Jan

Re: Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Pat Bensky via 4D_Tech
Piotr I believe the "bitness" has more to do with how it uses RAM than cores. Pat On Wed, 30 Jan 2019 at 09:13, Piotr Chabot Stadhouders via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi all, > > First of all, I must say I am no hardware expert, so maybe this is a > stupid question. > > It seems

Does 4D 64-bit Volume desktop use more than 1 core?

2019-01-30 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi all, First of all, I must say I am no hardware expert, so maybe this is a stupid question. It seems that 4D 32-bit Volume desktop only uses 1 core. But does 4D 64-bit Volume desktop use all available cores? Gr, Piotr ** 4D