Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 02:12 AM
Jim Buttafuoco
 
Posts: n/a
Default CSV arm check failure

ARM platform fails the "point" test see below.


parallel group (13 tests): text name char boolean varchar oid int8 int2 float4 int4 float8 bit numeric
boolean ... ok
char ... ok
name ... ok
varchar ... ok
text ... ok
int2 ... ok
int4 ... ok
int8 ... ok
oid ... ok
float4 ... ok
float8 ... ok
bit ... ok
numeric ... ok
test strings ... ok
test numerology ... ok
parallel group (20 tests): lseg point box path circle polygon time timetz comments reltime interval tinterval abstime
inet date timestamp timestamptz type_sanity oidjoins opr_sanity
point ... FAILED
lseg ... ok
box ... ok
path ... ok
polygon ... ok
circle ... ok
date ... ok
time ... ok
timetz ... ok
timestamp ... ok
timestamptz ... ok
interval ... ok
abstime ... ok
reltime ... ok
tinterval ... ok
inet ... ok
comments ... ok
oidjoins ... ok
type_sanity ... ok
opr_sanity ... ok
test geometry ... ok
test horology ... ok
test insert ... ok
test create_function_1 ... ok
test create_type ... ok
test create_table ... ok
test create_function_2 ... ok
test copy ... ok
parallel group (7 tests): create_aggregate create_operator triggers vacuum constraints inherit create_misc
constraints ... ok
triggers ... ok
create_misc ... ok
create_aggregate ... ok
create_operator ... ok
inherit ... ok
vacuum ... ok
parallel group (2 tests): create_view create_index
create_index ... ok
create_view ... ok
test sanity_check ... ok
test errors ... ok
test select ... ok
parallel group (18 tests): select_distinct_on select_into select_having update select_distinct case select_implicit
union namespace random aggregates hash_index arrays transactions btree_index portals join subselect
select_into ... ok
select_distinct ... ok
select_distinct_on ... ok
select_implicit ... ok
select_having ... ok
subselect ... ok
union ... ok
case ... ok
join ... ok
aggregates ... ok
transactions ... ok
random ... ok
portals ... ok
arrays ... ok
btree_index ... ok
hash_index ... ok
update ... ok
namespace ... ok
test privileges ... ok
test misc ... ok
parallel group (5 tests): portals_p2 cluster rules foreign_key select_views
select_views ... ok
portals_p2 ... ok
rules ... ok
foreign_key ... ok
cluster ... ok
parallel group (14 tests): truncate sequence limit temp copy2 prepare polymorphism conversion domain rowtypes
rangefuncs without_oid plpgsql alter_table
limit ... ok
plpgsql ... ok
copy2 ... ok
temp ... ok
domain ... ok
rangefuncs ... ok
prepare ... ok
without_oid ... ok
conversion ... ok
truncate ... ok
alter_table ... ok
sequence ... ok
polymorphism ... ok
rowtypes ... ok
test stats ... ok
test tablespace ... ok
*** ./expected/point.out Tue Jan 4 10:55:16 2005
--- ./results/point.out Tue Jan 4 12:40:50 2005
***************
*** 101,107 ****
| (-3,4) | 5
| (-10,0) | 10
| (-5,-12) | 13
! | (10,10) | 14.142135623731
| (5.1,34.5) | 34.8749193547455
(6 rows)

--- 101,107 ----
| (-3,4) | 5
| (-10,0) | 10
| (-5,-12) | 13
! | (10,10) | 14.1421356237309
| (5.1,34.5) | 34.8749193547455
(6 rows)

***************
*** 127,134 ****
| (-5,-12) | (-10,0) | 13
| (-5,-12) | (0,0) | 13
| (0,0) | (-5,-12) | 13
! | (0,0) | (10,10) | 14.142135623731
! | (10,10) | (0,0) | 14.142135623731
| (-3,4) | (10,10) | 14.3178210632764
| (10,10) | (-3,4) | 14.3178210632764
| (-5,-12) | (-3,4) | 16.1245154965971
--- 127,134 ----
| (-5,-12) | (-10,0) | 13
| (-5,-12) | (0,0) | 13
| (0,0) | (-5,-12) | 13
! | (0,0) | (10,10) | 14.1421356237309
! | (10,10) | (0,0) | 14.1421356237309
| (-3,4) | (10,10) | 14.3178210632764
| (10,10) | (-3,4) | 14.3178210632764
| (-5,-12) | (-3,4) | 16.1245154965971
***************
*** 198,204 ****
| (-10,0) | (0,0) | 10
| (-10,0) | (-5,-12) | 13
| (-5,-12) | (0,0) | 13
! | (0,0) | (10,10) | 14.142135623731
| (-3,4) | (10,10) | 14.3178210632764
| (-5,-12) | (-3,4) | 16.1245154965971
| (-10,0) | (10,10) | 22.3606797749979
--- 198,204 ----
| (-10,0) | (0,0) | 10
| (-10,0) | (-5,-12) | 13
| (-5,-12) | (0,0) | 13
! | (0,0) | (10,10) | 14.1421356237309
| (-3,4) | (10,10) | 14.3178210632764
| (-5,-12) | (-3,4) | 16.1245154965971
| (-10,0) | (10,10) | 22.3606797749979

================================================== ====================

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 02:12 AM
Peter Eisentraut
 
Posts: n/a
Default Re: CSV arm check failure

Am Dienstag, 4. Januar 2005 19:03 schrieb Jim Buttafuoco:
> ARM platform fails the "point" test see below.


For the 7.4 release we got a report for the ARM platform where all tests
passed:

http://archives.postgresql.org/pgsql...0/msg01212.php

So either there are various degrees of ARM processors or something is broken.
Ideas?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 02:12 AM
Marko Kreen
 
Posts: n/a
Default Re: CSV arm check failure

On Thu, Jan 06, 2005 at 10:18:58AM +0100, Peter Eisentraut wrote:
> Am Dienstag, 4. Januar 2005 19:03 schrieb Jim Buttafuoco:
> > ARM platform fails the "point" test see below.

>
> For the 7.4 release we got a report for the ARM platform where all tests
> passed:
>
> http://archives.postgresql.org/pgsql...0/msg01212.php
>
> So either there are various degrees of ARM processors or something is broken.
> Ideas?


Yes, there are various degrees of those, but most of them should be
FPU-less. So FPU-emulation details would be interesting.

In case of Linux there are 3 variants:

NWFPE: default

FastFPE: only 32-bit mantissa, 4-8x faster than NWFPE

gcc -msoft-float: no FP instructions, direct calls. This
changes calling convention, so requires that all
code is compiled with this.

Jim, do you happen to use FastFPE?

--
marko


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 02:12 AM
Jim Buttafuoco
 
Posts: n/a
Default Re: CSV arm check failure

it looks like a sqrt problem that has been fixed with the linux 2.6 kernel series. I am going to look and see if I
can get a 2.6 kernel to check it out.

since all of the other tests pass, maybe just a note in the read me file.

Jim



---------- Original Message -----------
From: Peter Eisentraut <peter_e@gmx.net>
To: jim@contactbda.com
Cc: "pgsql-hackers" <pgsql-hackers@postgresql.org>
Sent: Thu, 6 Jan 2005 10:18:58 +0100
Subject: Re: [HACKERS] CSV arm check failure

> Am Dienstag, 4. Januar 2005 19:03 schrieb Jim Buttafuoco:
> > ARM platform fails the "point" test see below.

>
> For the 7.4 release we got a report for the ARM platform where all tests
> passed:
>
> http://archives.postgresql.org/pgsql...0/msg01212.php
>
> So either there are various degrees of ARM processors or something is broken.
> Ideas?
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

------- End of Original Message -------


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 02:12 AM
Jim Buttafuoco
 
Posts: n/a
Default Re: CSV arm check failure

Marko,

I am using the stock Debian 2.4.27 kernel. Don't know how to change the fp setup. Do you have any instructions for
me?

Thanks
Jim



---------- Original Message -----------
From: Marko Kreen <marko@l-t.ee>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: jim@contactbda.com, pgsql-hackers <pgsql-hackers@postgresql.org>
Sent: Thu, 6 Jan 2005 15:26:05 +0200
Subject: Re: [HACKERS] CSV arm check failure

> On Thu, Jan 06, 2005 at 10:18:58AM +0100, Peter Eisentraut wrote:
> > Am Dienstag, 4. Januar 2005 19:03 schrieb Jim Buttafuoco:
> > > ARM platform fails the "point" test see below.

> >
> > For the 7.4 release we got a report for the ARM platform where all tests
> > passed:
> >
> > http://archives.postgresql.org/pgsql...0/msg01212.php
> >
> > So either there are various degrees of ARM processors or something is broken.
> > Ideas?

>
> Yes, there are various degrees of those, but most of them should be
> FPU-less. So FPU-emulation details would be interesting.
>
> In case of Linux there are 3 variants:
>
> NWFPE: default
>
> FastFPE: only 32-bit mantissa, 4-8x faster than NWFPE
>
> gcc -msoft-float: no FP instructions, direct calls. This
> changes calling convention, so requires that all
> code is compiled with this.
>
> Jim, do you happen to use FastFPE?
>
> --
> marko
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

------- End of Original Message -------


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2008, 02:12 AM
Marko Kreen
 
Posts: n/a
Default Re: CSV arm check failure

On Thu, Jan 06, 2005 at 09:07:14AM -0500, Jim Buttafuoco wrote:
> I am using the stock Debian 2.4.27 kernel. Don't know how to
> change the fp setup. Do you have any instructions for me?


It can be changed by configuring and recompiling kernel.

I checked the kernel-image-2.4.27-arm package from
Debian/testing and indeed it uses FastFPE emulation.

To be specific, the 'bast' and 'netwinder' targets do.
The 'lart', 'riscpc' and 'riscstation' targets use NWFPE.
I guess 'lart' and 'bast' are some devel boards and 'netwinder'
is the main target.

Looking at handhelds.org kernels they mostly use NWFPE
although there are couple of configs with FastFPE.

I have no clue on other Linux distros or *BSD's on ARM.

It seems PostgreSQL may encounter both NWFPE and FastFPE
on Linux/ARM. How to handle this I do not know.

--
marko


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-11-2008, 02:12 AM
Jim Buttafuoco
 
Posts: n/a
Default Re: CSV arm check failure

Marko,

I couldn't get 2.4.27 to patch with the arm patches, so I downloaded 2.4.25 (with has CONFIG_FPE_NWFPE=y) and ALL
tests passed. So I will file a bug report with Debian. We should also put something in the Postgresql readme about
this issue.

Jim


---------- Original Message -----------
From: Marko Kreen <marko@l-t.ee>
To: Jim Buttafuoco <jim@contactbda.com>
Cc: Peter Eisentraut <peter_e@gmx.net>, pgsql-hackers <pgsql-hackers@postgresql.org>
Sent: Thu, 6 Jan 2005 17:25:20 +0200
Subject: Re: [HACKERS] CSV arm check failure

> On Thu, Jan 06, 2005 at 10:21:43AM -0500, Jim Buttafuoco wrote:
> > I will recompile the kernel and get back to the list

>
> Thanks. This way we can be sure it is FP-emulation effect.
>
> --
> marko
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

------- End of Original Message -------


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-11-2008, 02:12 AM
Jim Buttafuoco
 
Posts: n/a
Default Re: CSV arm check failure

Marko/All,

I wrote the following test program

#include <stdio.h>
#include <math.h>

#define HYPOT(A, B) sqrt((A) * (A) + (B) * (B))
int main()
{
printf("SQRT Test\n");
long double a;

a = HYPOT(0-10,0-10);
printf("double a = %20.12Lf\n",a);
exit(0);
}

and compiled it as follows
gcc -lm -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels -fno-strict-aliasing -g -o sqrttest sqrt.c

with the following results:
SQRT Test
double a = 14.142135623731

which is the exact answer in the "results" file for point.

Now if I use perl instead of "C" I get the wrong answer 14.1421356237309 which is what postgres is also reporting. So
this looks like a compile time problem which is alittle over my head.

Any idea's
Jim




Jim


---------- Original Message -----------
From: Marko Kreen <marko@l-t.ee>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: jim@contactbda.com, pgsql-hackers <pgsql-hackers@postgresql.org>
Sent: Thu, 6 Jan 2005 15:26:05 +0200
Subject: Re: [HACKERS] CSV arm check failure

> On Thu, Jan 06, 2005 at 10:18:58AM +0100, Peter Eisentraut wrote:
> > Am Dienstag, 4. Januar 2005 19:03 schrieb Jim Buttafuoco:
> > > ARM platform fails the "point" test see below.

> >
> > For the 7.4 release we got a report for the ARM platform where all tests
> > passed:
> >
> > http://archives.postgresql.org/pgsql...0/msg01212.php
> >
> > So either there are various degrees of ARM processors or something is broken.
> > Ideas?

>
> Yes, there are various degrees of those, but most of them should be
> FPU-less. So FPU-emulation details would be interesting.
>
> In case of Linux there are 3 variants:
>
> NWFPE: default
>
> FastFPE: only 32-bit mantissa, 4-8x faster than NWFPE
>
> gcc -msoft-float: no FP instructions, direct calls. This
> changes calling convention, so requires that all
> code is compiled with this.
>
> Jim, do you happen to use FastFPE?
>
> --
> marko

------- End of Original Message -------


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-11-2008, 02:12 AM
Marko Kreen
 
Posts: n/a
Default Re: CSV arm check failure

On Thu, Jan 06, 2005 at 10:18:58AM +0100, Peter Eisentraut wrote:
> For the 7.4 release we got a report for the ARM platform where all tests
> passed:
>
> http://archives.postgresql.org/pgsql...0/msg01212.php


Additional info point:

> (sid)noel ( at ) debussy:~/postgresql-cvs/pgsql$ uname -a
> Linux debussy 2.4.19-netwinder #1 Thu Mar 20 03:14:34 CET 2003 armv4l GNU/Linux


I am guessing: the distro was Debian.

I cant find 2.4.19-netwinder kernel but 2.4.16-netwinder from
Debian/stable uses NWFPE. Ѕo Debian has changed from NWFPE to
FastFPE at some point in time.

--
marko


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-11-2008, 02:12 AM
Marko Kreen
 
Posts: n/a
Default Re: CSV arm check failure

On Thu, Jan 06, 2005 at 10:21:43AM -0500, Jim Buttafuoco wrote:
> I will recompile the kernel and get back to the list


Thanks. This way we can be sure it is FP-emulation effect.

--
marko


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538