Re: [CentOS] time foo

2017-12-02 Thread hw
John R Pierce wrote: On 12/1/2017 11:32 AM, hw wrote: So this would mean that the database (running on a different server) takes almost two times as much as foo --- which I would consider kinda excruciatingly long because it´s merely inserting rows into two different tables after they were

Re: [CentOS] time foo

2017-12-02 Thread hw
Mark Haney wrote: On 12/01/2017 02:32 PM, hw wrote: Hm. Foo is a program that imports data into a database from two CVS files, using a connection for each file and forking to import both files at once. So this would mean that the database (running on a different server) takes almost two

Re: [CentOS] time foo

2017-12-01 Thread John R Pierce
On 12/1/2017 11:32 AM, hw wrote: So this would mean that the database (running on a different server) takes almost two times as much as foo --- which I would consider kinda excruciatingly long because it´s merely inserting rows into two different tables after they were prepared by foo and

Re: [CentOS] time foo

2017-12-01 Thread Mark Haney
On 12/01/2017 02:32 PM, hw wrote: Hm.  Foo is a program that imports data into a database from two CVS files, using a connection for each file and forking to import both files at once. So this would mean that the database (running on a different server) takes almost two times as much as foo

Re: [CentOS] time foo

2017-12-01 Thread Stephen John Smoogen
On 1 December 2017 at 14:32, hw wrote: > Gordon Messmer wrote: >> >> On 12/01/2017 08:49 AM, hw wrote: >>> >>> # time foo >>> real43m39.841s >>> user15m31.109s >>> sys 0m44.136s >>> >>> >>> Almost 30 minutes have disappeared, but it actually took about that long, >>> so

Re: [CentOS] time foo

2017-12-01 Thread hw
Gordon Messmer wrote: On 12/01/2017 08:49 AM, hw wrote: # time foo real43m39.841s user15m31.109s sys 0m44.136s Almost 30 minutes have disappeared, but it actually took about that long, so what happened? I may misunderstand your question, but "time" is provided by the bash

Re: [CentOS] time foo

2017-12-01 Thread Gordon Messmer
On 12/01/2017 08:49 AM, hw wrote: # time foo real    43m39.841s user    15m31.109s sys 0m44.136s Almost 30 minutes have disappeared, but it actually took about that long, so what happened? I may misunderstand your question, but "time" is provided by the bash shell.  It may be provided

Re: [CentOS] time foo

2017-12-01 Thread Stephen John Smoogen
On 1 December 2017 at 11:49, hw wrote: > > Hi, > > isn´t this weird: > > > # time foo > real43m39.841s > user15m31.109s > sys 0m44.136s > This is counting the CPU time that a process used. If something is not in 'CPU' but waiting on input etc it might not get counted

[CentOS] time foo

2017-12-01 Thread hw
Hi, isn´t this weird: # time foo real43m39.841s user15m31.109s sys 0m44.136s Almost 30 minutes have disappeared, but it actually took about that long, so what happened? ___ CentOS mailing list CentOS@centos.org