Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Behind every great computer sits a skinny little geek.


devel / comp.lang.mumps / Re: Yottadb question: $zgetjpi not working??

SubjectAuthor
* Yottadb question: $zgetjpi not working??kdtop
`* Re: Yottadb question: $zgetjpi not working??kdtop
 `* Re: Yottadb question: $zgetjpi not working??kdtop
  `* Re: Yottadb question: $zgetjpi not working??OldMster
   `* Re: Yottadb question: $zgetjpi not working??kdtop
    `* Re: Yottadb question: $zgetjpi not working??OldMster
     `* Re: Yottadb question: $zgetjpi not working??kdtop
      `* Re: Yottadb question: $zgetjpi not working??OldMster
       `* Re: Yottadb question: $zgetjpi not working??OldMster
        `- Re: Yottadb question: $zgetjpi not working??K.S. Bhaskar

1
Yottadb question: $zgetjpi not working??

<fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=432&group=comp.lang.mumps#432

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:448a:b0:6b8:e0cc:69f1 with SMTP id x10-20020a05620a448a00b006b8e0cc69f1mr12464604qkp.459.1659918819460;
Sun, 07 Aug 2022 17:33:39 -0700 (PDT)
X-Received: by 2002:a05:6214:20a2:b0:476:9071:2e60 with SMTP id
2-20020a05621420a200b0047690712e60mr13665516qvd.110.1659918819236; Sun, 07
Aug 2022 17:33:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 7 Aug 2022 17:33:39 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=173.164.29.153; posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 173.164.29.153
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
Subject: Yottadb question: $zgetjpi not working??
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 08 Aug 2022 00:33:39 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1336
 by: kdtop - Mon, 8 Aug 2022 00:33 UTC

When I call $zgetjpi("","cputim"), I just get back the same number despite repeated calls. Is this expected?

Thanks
Kevin T

yottadb>

yottadb>w $zgetjpi("","cputim")
77
yottadb>w $zgetjpi("","cputim")
77
yottadb>w $zgetjpi("","cputim")
77
yottadb>w $zgetjpi("","cputim")
77
yottadb>w $zver
GT.M V6.3-008 Linux x86_64
yottadb>

Re: Yottadb question: $zgetjpi not working??

<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=433&group=comp.lang.mumps#433

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:6214:d82:b0:477:3d7c:1081 with SMTP id e2-20020a0562140d8200b004773d7c1081mr13748339qve.28.1659919024224;
Sun, 07 Aug 2022 17:37:04 -0700 (PDT)
X-Received: by 2002:a05:622a:178e:b0:33b:1ad8:a58e with SMTP id
s14-20020a05622a178e00b0033b1ad8a58emr14203633qtk.454.1659919023895; Sun, 07
Aug 2022 17:37:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 7 Aug 2022 17:37:03 -0700 (PDT)
In-Reply-To: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.164.29.153; posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 173.164.29.153
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 08 Aug 2022 00:37:04 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1958
 by: kdtop - Mon, 8 Aug 2022 00:37 UTC

I'll add that I was initially looking at GT.M manual, here:
http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch07s36.html

I also see a YottaDB entry here:
https://docs.yottadb.com/ProgrammersGuide/functions.html#zgetjpi
It mentions that there may be a linux-level privileges issues for some information. Could this be the problem?

Kevin

On Sunday, August 7, 2022 at 8:33:40 PM UTC-4, kdtop wrote:
> When I call $zgetjpi("","cputim"), I just get back the same number despite repeated calls. Is this expected?
>
> Thanks
> Kevin T
>
>
> yottadb>
>
> yottadb>w $zgetjpi("","cputim")
> 77
> yottadb>w $zgetjpi("","cputim")
> 77
> yottadb>w $zgetjpi("","cputim")
> 77
> yottadb>w $zgetjpi("","cputim")
> 77
> yottadb>w $zver
> GT.M V6.3-008 Linux x86_64
> yottadb>

Re: Yottadb question: $zgetjpi not working??

<a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=434&group=comp.lang.mumps#434

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:28c9:b0:6b9:592c:dc04 with SMTP id l9-20020a05620a28c900b006b9592cdc04mr916503qkp.674.1659919265895;
Sun, 07 Aug 2022 17:41:05 -0700 (PDT)
X-Received: by 2002:a05:622a:198b:b0:31e:ec25:8ead with SMTP id
u11-20020a05622a198b00b0031eec258eadmr14150115qtc.423.1659919265617; Sun, 07
Aug 2022 17:41:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 7 Aug 2022 17:41:05 -0700 (PDT)
In-Reply-To: <549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.164.29.153; posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 173.164.29.153
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com> <549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 08 Aug 2022 00:41:05 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2213
 by: kdtop - Mon, 8 Aug 2022 00:41 UTC

More info:

yottadb>w $ZYRELEASE
YottaDB r1.30 Linux x86_64
yottadb>

Kevin

On Sunday, August 7, 2022 at 8:37:04 PM UTC-4, kdtop wrote:
> I'll add that I was initially looking at GT.M manual, here:
> http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch07s36.html
>
> I also see a YottaDB entry here:
> https://docs.yottadb.com/ProgrammersGuide/functions.html#zgetjpi
> It mentions that there may be a linux-level privileges issues for some information. Could this be the problem?
>
> Kevin
> On Sunday, August 7, 2022 at 8:33:40 PM UTC-4, kdtop wrote:
> > When I call $zgetjpi("","cputim"), I just get back the same number despite repeated calls. Is this expected?
> >
> > Thanks
> > Kevin T
> >
> >
> > yottadb>
> >
> > yottadb>w $zgetjpi("","cputim")
> > 77
> > yottadb>w $zgetjpi("","cputim")
> > 77
> > yottadb>w $zgetjpi("","cputim")
> > 77
> > yottadb>w $zgetjpi("","cputim")
> > 77
> > yottadb>w $zver
> > GT.M V6.3-008 Linux x86_64
> > yottadb>

Re: Yottadb question: $zgetjpi not working??

<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=435&group=comp.lang.mumps#435

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:1649:b0:33d:df39:8c8a with SMTP id y9-20020a05622a164900b0033ddf398c8amr16625177qtj.416.1659973664396;
Mon, 08 Aug 2022 08:47:44 -0700 (PDT)
X-Received: by 2002:ac8:574e:0:b0:31f:28c3:43d6 with SMTP id
14-20020ac8574e000000b0031f28c343d6mr16080302qtx.200.1659973664079; Mon, 08
Aug 2022 08:47:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 8 Aug 2022 08:47:43 -0700 (PDT)
In-Reply-To: <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=50.249.135.41; posting-account=B5cu_goAAACZo0vIvp9ba07OhA0t6wHW
NNTP-Posting-Host: 50.249.135.41
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: sires.mark@gmail.com (OldMster)
Injection-Date: Mon, 08 Aug 2022 15:47:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3095
 by: OldMster - Mon, 8 Aug 2022 15:47 UTC

On Sunday, August 7, 2022 at 8:41:06 PM UTC-4, kdtop wrote:
> More info:
>
> yottadb>w $ZYRELEASE
> YottaDB r1.30 Linux x86_64
> yottadb>
>
> Kevin
> On Sunday, August 7, 2022 at 8:37:04 PM UTC-4, kdtop wrote:
> > I'll add that I was initially looking at GT.M manual, here:
> > http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch07s36.html
> >
> > I also see a YottaDB entry here:
> > https://docs.yottadb.com/ProgrammersGuide/functions.html#zgetjpi
> > It mentions that there may be a linux-level privileges issues for some information. Could this be the problem?
> >
> > Kevin
> > On Sunday, August 7, 2022 at 8:33:40 PM UTC-4, kdtop wrote:
> > > When I call $zgetjpi("","cputim"), I just get back the same number despite repeated calls. Is this expected?
> > >
> > > Thanks
> > > Kevin T
> > >
> > >
> > > yottadb>
> > >
> > > yottadb>w $zgetjpi("","cputim")
> > > 77
> > > yottadb>w $zgetjpi("","cputim")
> > > 77
> > > yottadb>w $zgetjpi("","cputim")
> > > 77
> > > yottadb>w $zgetjpi("","cputim")
> > > 77
> > > yottadb>w $zver
> > > GT.M V6.3-008 Linux x86_64
> > > yottadb>
Kevin,

I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.

Mark

Re: Yottadb question: $zgetjpi not working??

<703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=436&group=comp.lang.mumps#436

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a0c:eb09:0:b0:474:9b46:f9f6 with SMTP id j9-20020a0ceb09000000b004749b46f9f6mr17592446qvp.78.1659994672143;
Mon, 08 Aug 2022 14:37:52 -0700 (PDT)
X-Received: by 2002:a05:622a:198b:b0:31e:ec25:8ead with SMTP id
u11-20020a05622a198b00b0031eec258eadmr17643661qtc.423.1659994671857; Mon, 08
Aug 2022 14:37:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 8 Aug 2022 14:37:51 -0700 (PDT)
In-Reply-To: <5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.164.29.153; posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 173.164.29.153
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 08 Aug 2022 21:37:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3447
 by: kdtop - Mon, 8 Aug 2022 21:37 UTC

So we have one system not working and other system that does work.

Anyone have ideas of how I can test this?

Thanks
Kevin

On Monday, August 8, 2022 at 11:47:45 AM UTC-4, OldMster wrote:
> On Sunday, August 7, 2022 at 8:41:06 PM UTC-4, kdtop wrote:
> > More info:
> >
> > yottadb>w $ZYRELEASE
> > YottaDB r1.30 Linux x86_64
> > yottadb>
> >
> > Kevin
> > On Sunday, August 7, 2022 at 8:37:04 PM UTC-4, kdtop wrote:
> > > I'll add that I was initially looking at GT.M manual, here:
> > > http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch07s36.html
> > >
> > > I also see a YottaDB entry here:
> > > https://docs.yottadb.com/ProgrammersGuide/functions.html#zgetjpi
> > > It mentions that there may be a linux-level privileges issues for some information. Could this be the problem?
> > >
> > > Kevin
> > > On Sunday, August 7, 2022 at 8:33:40 PM UTC-4, kdtop wrote:
> > > > When I call $zgetjpi("","cputim"), I just get back the same number despite repeated calls. Is this expected?
> > > >
> > > > Thanks
> > > > Kevin T
> > > >
> > > >
> > > > yottadb>
> > > >
> > > > yottadb>w $zgetjpi("","cputim")
> > > > 77
> > > > yottadb>w $zgetjpi("","cputim")
> > > > 77
> > > > yottadb>w $zgetjpi("","cputim")
> > > > 77
> > > > yottadb>w $zgetjpi("","cputim")
> > > > 77
> > > > yottadb>w $zver
> > > > GT.M V6.3-008 Linux x86_64
> > > > yottadb>
> Kevin,
>
> I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.
>
> Mark

Re: Yottadb question: $zgetjpi not working??

<56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=437&group=comp.lang.mumps#437

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:6214:d89:b0:479:6726:7f42 with SMTP id e9-20020a0562140d8900b0047967267f42mr12980062qve.20.1659995668398;
Mon, 08 Aug 2022 14:54:28 -0700 (PDT)
X-Received: by 2002:a05:620a:13fb:b0:6b9:436b:9599 with SMTP id
h27-20020a05620a13fb00b006b9436b9599mr6263186qkl.707.1659995668164; Mon, 08
Aug 2022 14:54:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 8 Aug 2022 14:54:27 -0700 (PDT)
In-Reply-To: <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=50.249.135.41; posting-account=B5cu_goAAACZo0vIvp9ba07OhA0t6wHW
NNTP-Posting-Host: 50.249.135.41
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com> <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: sires.mark@gmail.com (OldMster)
Injection-Date: Mon, 08 Aug 2022 21:54:28 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4057
 by: OldMster - Mon, 8 Aug 2022 21:54 UTC

On Monday, August 8, 2022 at 5:37:52 PM UTC-4, kdtop wrote:
> So we have one system not working and other system that does work.
>
> Anyone have ideas of how I can test this?
>
> Thanks
> Kevin
> On Monday, August 8, 2022 at 11:47:45 AM UTC-4, OldMster wrote:
> > On Sunday, August 7, 2022 at 8:41:06 PM UTC-4, kdtop wrote:
> > > More info:
> > >
> > > yottadb>w $ZYRELEASE
> > > YottaDB r1.30 Linux x86_64
> > > yottadb>
> > >
> > > Kevin
> > > On Sunday, August 7, 2022 at 8:37:04 PM UTC-4, kdtop wrote:
> > > > I'll add that I was initially looking at GT.M manual, here:
> > > > http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch07s36.html
> > > >
> > > > I also see a YottaDB entry here:
> > > > https://docs.yottadb.com/ProgrammersGuide/functions.html#zgetjpi
> > > > It mentions that there may be a linux-level privileges issues for some information. Could this be the problem?
> > > >
> > > > Kevin
> > > > On Sunday, August 7, 2022 at 8:33:40 PM UTC-4, kdtop wrote:
> > > > > When I call $zgetjpi("","cputim"), I just get back the same number despite repeated calls. Is this expected?
> > > > >
> > > > > Thanks
> > > > > Kevin T
> > > > >
> > > > >
> > > > > yottadb>
> > > > >
> > > > > yottadb>w $zgetjpi("","cputim")
> > > > > 77
> > > > > yottadb>w $zgetjpi("","cputim")
> > > > > 77
> > > > > yottadb>w $zgetjpi("","cputim")
> > > > > 77
> > > > > yottadb>w $zgetjpi("","cputim")
> > > > > 77
> > > > > yottadb>w $zver
> > > > > GT.M V6.3-008 Linux x86_64
> > > > > yottadb>
> > Kevin,
> >
> > I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.
> >
> > Mark
Did you try doing a lot of 'work' and then rechecking $zgetjpi? It takes a lot of command line 'work' before it will increment. I ran several 1000 iteration loops doing exponentiation and string manipulation, and only got it up to 2 (which is .02 seconds of cpu time).
Linux is hard to do this with because so much 'stuff' creates a new process..

Mark

Re: Yottadb question: $zgetjpi not working??

<c3da528b-ce4b-4792-ae98-8d5be696f10bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=438&group=comp.lang.mumps#438

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:6214:d82:b0:477:3d7c:1081 with SMTP id e2-20020a0562140d8200b004773d7c1081mr17256656qve.28.1659996707990;
Mon, 08 Aug 2022 15:11:47 -0700 (PDT)
X-Received: by 2002:a05:620a:2415:b0:6b6:1bf3:154b with SMTP id
d21-20020a05620a241500b006b61bf3154bmr16039268qkn.454.1659996707714; Mon, 08
Aug 2022 15:11:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 8 Aug 2022 15:11:47 -0700 (PDT)
In-Reply-To: <56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.164.29.153; posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 173.164.29.153
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com> <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
<56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3da528b-ce4b-4792-ae98-8d5be696f10bn@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 08 Aug 2022 22:11:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2729
 by: kdtop - Mon, 8 Aug 2022 22:11 UTC

So are you saying that this is a measurement of actual CPU working time? I..e. if the mumps environment hasn't had to really do anything, but was just sitting there for 1 minute, that the CPU time wouldn't increase significantly?

OK, then I guess it must be working.

Thanks
Kevin

> > > I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.
> > >
> > > Mark
> Did you try doing a lot of 'work' and then rechecking $zgetjpi? It takes a lot of command line 'work' before it will increment. I ran several 1000 iteration loops doing exponentiation and string manipulation, and only got it up to 2 (which is .02 seconds of cpu time).
> Linux is hard to do this with because so much 'stuff' creates a new process.
>
> Mark

Re: Yottadb question: $zgetjpi not working??

<bcef045b-2bcb-41f9-82e6-c5f4770c477cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=439&group=comp.lang.mumps#439

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:4442:b0:6b2:844e:ee67 with SMTP id w2-20020a05620a444200b006b2844eee67mr17687142qkp.625.1660060067157;
Tue, 09 Aug 2022 08:47:47 -0700 (PDT)
X-Received: by 2002:a05:620a:4709:b0:6b8:e8fb:cd46 with SMTP id
bs9-20020a05620a470900b006b8e8fbcd46mr17868737qkb.272.1660060066983; Tue, 09
Aug 2022 08:47:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 9 Aug 2022 08:47:46 -0700 (PDT)
In-Reply-To: <c3da528b-ce4b-4792-ae98-8d5be696f10bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=50.249.135.41; posting-account=B5cu_goAAACZo0vIvp9ba07OhA0t6wHW
NNTP-Posting-Host: 50.249.135.41
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com> <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
<56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com> <c3da528b-ce4b-4792-ae98-8d5be696f10bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bcef045b-2bcb-41f9-82e6-c5f4770c477cn@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: sires.mark@gmail.com (OldMster)
Injection-Date: Tue, 09 Aug 2022 15:47:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3474
 by: OldMster - Tue, 9 Aug 2022 15:47 UTC

On Monday, August 8, 2022 at 6:11:48 PM UTC-4, kdtop wrote:
> So are you saying that this is a measurement of actual CPU working time? I.e. if the mumps environment hasn't had to really do anything, but was just sitting there for 1 minute, that the CPU time wouldn't increase significantly?
>
> OK, then I guess it must be working.
>
> Thanks
> Kevin
> > > > I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.
> > > >
> > > > Mark
> > Did you try doing a lot of 'work' and then rechecking $zgetjpi? It takes a lot of command line 'work' before it will increment. I ran several 1000 iteration loops doing exponentiation and string manipulation, and only got it up to 2 (which is .02 seconds of cpu time).
> > Linux is hard to do this with because so much 'stuff' creates a new process.
> >
> > Mark

Correct. It is a measurement of CPU Time for the process # passed in the first parameter. If the first parameter is blank, then it is for the current process. It is not a measurement of the entire machine CPU time, from the M programmers guide:

"Returns job or process information of the specified process. The format for the $ZGETJPI function is:"

The privilege issue discussed is if you are trying to retrieve information about process other than the current process - you might not have privileges to get that information for another process.

Mark

Re: Yottadb question: $zgetjpi not working??

<2181c1cc-7e76-46b5-be22-659ca7a93d71n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=440&group=comp.lang.mumps#440

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:2909:b0:6b6:a94:a988 with SMTP id m9-20020a05620a290900b006b60a94a988mr19310602qkp.350.1660078373047;
Tue, 09 Aug 2022 13:52:53 -0700 (PDT)
X-Received: by 2002:a05:6214:2522:b0:476:6d51:d42 with SMTP id
gg2-20020a056214252200b004766d510d42mr21061516qvb.35.1660078372883; Tue, 09
Aug 2022 13:52:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 9 Aug 2022 13:52:52 -0700 (PDT)
In-Reply-To: <bcef045b-2bcb-41f9-82e6-c5f4770c477cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=50.249.135.41; posting-account=B5cu_goAAACZo0vIvp9ba07OhA0t6wHW
NNTP-Posting-Host: 50.249.135.41
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com> <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
<56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com> <c3da528b-ce4b-4792-ae98-8d5be696f10bn@googlegroups.com>
<bcef045b-2bcb-41f9-82e6-c5f4770c477cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2181c1cc-7e76-46b5-be22-659ca7a93d71n@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: sires.mark@gmail.com (OldMster)
Injection-Date: Tue, 09 Aug 2022 20:52:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3885
 by: OldMster - Tue, 9 Aug 2022 20:52 UTC

On Tuesday, August 9, 2022 at 11:47:47 AM UTC-4, OldMster wrote:
> On Monday, August 8, 2022 at 6:11:48 PM UTC-4, kdtop wrote:
> > So are you saying that this is a measurement of actual CPU working time? I.e. if the mumps environment hasn't had to really do anything, but was just sitting there for 1 minute, that the CPU time wouldn't increase significantly?
> >
> > OK, then I guess it must be working.
> >
> > Thanks
> > Kevin
> > > > > I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor.. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.
> > > > >
> > > > > Mark
> > > Did you try doing a lot of 'work' and then rechecking $zgetjpi? It takes a lot of command line 'work' before it will increment. I ran several 1000 iteration loops doing exponentiation and string manipulation, and only got it up to 2 (which is .02 seconds of cpu time).
> > > Linux is hard to do this with because so much 'stuff' creates a new process.
> > >
> > > Mark
> Correct. It is a measurement of CPU Time for the process # passed in the first parameter. If the first parameter is blank, then it is for the current process. It is not a measurement of the entire machine CPU time, from the M programmers guide:
>
> "Returns job or process information of the specified process. The format for the $ZGETJPI function is:"
>
> The privilege issue discussed is if you are trying to retrieve information about process other than the current process - you might not have privileges to get that information for another process.
>
> Mark
Kevin,

I've done some more playing with this, and it appears $zgetjpi always returns the cpu time for the current process, regardless of what the first parameter is. I'm going to submit an issue for it on GitLab.

Mark

Re: Yottadb question: $zgetjpi not working??

<6fe07c26-6664-4997-86e9-f62d920eca79n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=441&group=comp.lang.mumps#441

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:6214:1c83:b0:46b:a79a:2f0b with SMTP id ib3-20020a0562141c8300b0046ba79a2f0bmr23918243qvb.103.1660143402618;
Wed, 10 Aug 2022 07:56:42 -0700 (PDT)
X-Received: by 2002:a05:620a:271f:b0:6b9:3b62:c67e with SMTP id
b31-20020a05620a271f00b006b93b62c67emr13416933qkp.164.1660143402340; Wed, 10
Aug 2022 07:56:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Wed, 10 Aug 2022 07:56:42 -0700 (PDT)
In-Reply-To: <2181c1cc-7e76-46b5-be22-659ca7a93d71n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 71.162.243.192
References: <fa66f0b1-77f8-4dc3-aa18-33a069b561cen@googlegroups.com>
<549a9ad9-7106-4e0a-92a0-d96adcc88a95n@googlegroups.com> <a8fc666a-d4b0-4290-86d7-cda87044bd90n@googlegroups.com>
<5344f021-8a46-44ae-b137-82912dd515can@googlegroups.com> <703bc8c6-3fd5-45e1-b3e3-31d04add9258n@googlegroups.com>
<56d050a9-1f0a-41e8-b2b0-f7bcf18f6354n@googlegroups.com> <c3da528b-ce4b-4792-ae98-8d5be696f10bn@googlegroups.com>
<bcef045b-2bcb-41f9-82e6-c5f4770c477cn@googlegroups.com> <2181c1cc-7e76-46b5-be22-659ca7a93d71n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6fe07c26-6664-4997-86e9-f62d920eca79n@googlegroups.com>
Subject: Re: Yottadb question: $zgetjpi not working??
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Wed, 10 Aug 2022 14:56:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4647
 by: K.S. Bhaskar - Wed, 10 Aug 2022 14:56 UTC

On Tuesday, August 9, 2022 at 4:52:53 PM UTC-4, OldMster wrote:
> On Tuesday, August 9, 2022 at 11:47:47 AM UTC-4, OldMster wrote:
> > On Monday, August 8, 2022 at 6:11:48 PM UTC-4, kdtop wrote:
> > > So are you saying that this is a measurement of actual CPU working time? I.e. if the mumps environment hasn't had to really do anything, but was just sitting there for 1 minute, that the CPU time wouldn't increase significantly?
> > >
> > > OK, then I guess it must be working.
> > >
> > > Thanks
> > > Kevin
> > > > > > I tried it on v 1.28 of YottaDB. The reported value is in hundredths of a second, which is actually a lot of CPU time for a modern processor. I was able to get it to increment by doing some actual work, although after several loop squaring the value of x until it reached a really big number then resetting it to 2, then a 1000 iteration loop taking a string of all Alpha characters, uppercasing it is an odd iteration, and lowercasing it if it is an even iteration, I only got the value of $zgetjpi("","cputim") up to 2.
> > > > > >
> > > > > > Mark
> > > > Did you try doing a lot of 'work' and then rechecking $zgetjpi? It takes a lot of command line 'work' before it will increment. I ran several 1000 iteration loops doing exponentiation and string manipulation, and only got it up to 2 (which is .02 seconds of cpu time).
> > > > Linux is hard to do this with because so much 'stuff' creates a new process.
> > > >
> > > > Mark
> > Correct. It is a measurement of CPU Time for the process # passed in the first parameter. If the first parameter is blank, then it is for the current process. It is not a measurement of the entire machine CPU time, from the M programmers guide:
> >
> > "Returns job or process information of the specified process. The format for the $ZGETJPI function is:"
> >
> > The privilege issue discussed is if you are trying to retrieve information about process other than the current process - you might not have privileges to get that information for another process.
> >
> > Mark
> Kevin,
>
> I've done some more playing with this, and it appears $zgetjpi always returns the cpu time for the current process, regardless of what the first parameter is. I'm going to submit an issue for it on GitLab.
>
> Mark

From https://docs.yottadb.com/ProgrammersGuide/functions.html#zgetjpi

Note that the $ZGETJPI() retrieves process time measurements (CPUTIM, CSTIME, CUTIME, STIME, and UTIME) only of the current process ($JOB). The “child” process time includes ZSYSTEM and PIPE device sub-processes (only after the PIPE CLOSEs), but excludes processes created by JOB commands.

https://gitlab.com/YottaDB/DB/YDB/-/issues/908 has been created suggesting adding the functionality as an improvement to YottaDB.

Regards
– Bhaskar

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor