Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddressSanitizerInterface.GetOwnershipStressTest is very slow on Mac #51

Closed
ramosian-glider opened this issue Aug 31, 2015 · 6 comments
Closed

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 51

reproduce (on Mac): 

% ./bin_darwin/asan_test64 --gtest_filter=AddressSanitizerInterface.GetOwnershipStressTest
[       OK ] AddressSanitizerInterface.GetOwnershipStressTest (7346 ms)

(reasonable)

% ./bin_darwin/asan_test64
AddressSanitizerInterface.GetOwnershipStressTest (3250302 ms)



Reported by konstantin.s.serebryany on 2012-03-16 22:08:41

@ramosian-glider
Copy link
Member Author

r152953 disables the test on non-linux. 
Alex, could you please collect a profile on Mac (and also remind us here how to do
this)?

Reported by konstantin.s.serebryany on 2012-03-16 22:21:11

  • Labels added: OpSys-OSX, Performance

@ramosian-glider
Copy link
Member Author

Maybe the test just eats too much RAM and swaps? 
Not sure how to check this on Mac, please help. 

Reported by konstantin.s.serebryany on 2012-03-16 22:59:50

@ramosian-glider
Copy link
Member Author

First, asan_test64 spawns too many subprocesses which are not taken down. Let me check
where do they come from.

  619 ttys003    2:33.17 bin_darwin/asan_test64
 1451 ttys003    0:00.00 (asan_test64)
 1452 ttys003    0:00.00 (asan_test64)
 1453 ttys003    0:00.00 (asan_test64)
 1454 ttys003    0:00.00 (asan_test64)
 1455 ttys003    0:00.00 (asan_test64)
 1456 ttys003    0:00.00 (asan_test64)
 1457 ttys003    0:00.00 (asan_test64)
 1458 ttys003    0:00.00 (asan_test64)
 1459 ttys003    0:00.00 (asan_test64)
 1460 ttys003    0:00.00 (asan_test64)
 1461 ttys003    0:00.00 (asan_test64)
 1462 ttys003    0:00.00 (asan_test64)
 1463 ttys003    0:00.00 (asan_test64)
 1464 ttys003    0:00.00 (asan_test64)
 1465 ttys003    0:00.00 (asan_test64)
 1466 ttys003    0:00.00 (asan_test64)
 1467 ttys003    0:00.00 (asan_test64)
 1468 ttys003    0:00.00 (asan_test64)
 1469 ttys003    0:00.00 (asan_test64)
 1470 ttys003    0:00.00 (asan_test64)
 1471 ttys003    0:00.00 (asan_test64)
 1472 ttys003    0:00.00 (asan_test64)
 1473 ttys003    0:00.00 (asan_test64)
 1474 ttys003    0:00.00 (asan_test64)
 1475 ttys003    0:00.00 (asan_test64)
 1476 ttys003    0:00.00 (asan_test64)
 1477 ttys003    0:00.00 (asan_test64)
 1478 ttys003    0:00.00 (asan_test64)
 1479 ttys003    0:00.00 (asan_test64)
 1480 ttys003    0:00.00 (asan_test64)
 1481 ttys003    0:00.00 (asan_test64)
 1482 ttys003    0:00.00 (asan_test64)
 1483 ttys003    0:00.00 (asan_test64)
 1484 ttys003    0:00.00 (asan_test64)
 1485 ttys003    0:00.00 (asan_test64)
 1486 ttys003    0:00.00 (asan_test64)
 1487 ttys003    0:00.00 (asan_test64)
 1488 ttys003    0:00.00 (asan_test64)
 1489 ttys003    0:00.00 (asan_test64)
 1490 ttys003    0:00.00 (asan_test64)
 1491 ttys003    0:00.00 (asan_test64)
 1492 ttys003    0:00.00 (asan_test64)
 1493 ttys003    0:00.00 (asan_test64)
 1494 ttys003    0:00.00 (asan_test64)
 1495 ttys003    0:00.00 (asan_test64)
 1496 ttys003    0:00.00 (asan_test64)
 1497 ttys003    0:00.00 (asan_test64)
 1498 ttys003    0:00.00 (asan_test64)
 1499 ttys003    0:00.00 (asan_test64)
 1500 ttys003    0:00.00 (asan_test64)
 1501 ttys003    0:00.00 (asan_test64)
 1502 ttys003    0:00.00 (asan_test64)
 1503 ttys003    0:00.00 (asan_test64)
 1504 ttys003    0:00.00 (asan_test64)
 1505 ttys003    0:00.00 (asan_test64)
 1506 ttys003    0:00.00 (asan_test64)
 1507 ttys003    0:00.00 (asan_test64)
 1508 ttys003    0:00.00 (asan_test64)
 1509 ttys003    0:00.00 (asan_test64)
 1510 ttys003    0:00.00 (asan_test64)
 1511 ttys003    0:00.00 (asan_test64)
 1512 ttys003    0:00.00 (asan_test64)
 1513 ttys003    0:00.00 (asan_test64)
 1514 ttys003    0:00.00 (asan_test64)
 1515 ttys003    0:00.00 (asan_test64)
 1516 ttys003    0:00.00 (asan_test64)
 1517 ttys003    0:00.00 (asan_test64)
 1518 ttys003    0:00.00 (asan_test64)
 1519 ttys003    0:00.00 (asan_test64)
 1520 ttys003    0:00.00 (asan_test64)
 1521 ttys003    0:00.00 (asan_test64)
 1522 ttys003    0:00.00 (asan_test64)
 1523 ttys003    0:00.00 (asan_test64)
 1524 ttys003    0:00.00 (asan_test64)
 1525 ttys003    0:00.00 (asan_test64)
 1526 ttys003    0:00.00 (asan_test64)
 1527 ttys003    0:00.00 (asan_test64)
 1528 ttys003    0:00.00 (asan_test64)
 1529 ttys003    0:00.00 (asan_test64)
 1530 ttys003    0:00.00 (asan_test64)
 1531 ttys003    0:00.00 (asan_test64)
 1532 ttys003    0:00.00 (asan_test64)
 1533 ttys003    0:00.00 (asan_test64)
 1534 ttys003    0:00.00 (asan_test64)
 1535 ttys003    0:00.00 (asan_test64)
 1536 ttys003    0:00.00 (asan_test64)
 1537 ttys003    0:00.00 (asan_test64)
 1538 ttys003    0:00.00 (asan_test64)
 1539 ttys003    0:00.00 (asan_test64)
 1540 ttys003    0:00.00 (asan_test64)
 1541 ttys003    0:00.00 (asan_test64)
 1542 ttys003    0:00.00 (asan_test64)
 1543 ttys003    0:00.00 (asan_test64)
 1544 ttys003    0:00.00 (asan_test64)
 1545 ttys003    0:00.00 (asan_test64)
 1546 ttys003    0:00.00 (asan_test64)
 1547 ttys003    0:00.00 (asan_test64)
 1548 ttys003    0:00.00 (asan_test64)
 1549 ttys003    0:00.00 (asan_test64)
 1550 ttys003    0:00.00 (asan_test64)

Reported by glider@google.com on 2012-03-19 09:11:37

@ramosian-glider
Copy link
Member Author

$ bin_darwin/asan_test64 --gtest_filter=AddressSanitizerInterface*
Note: Google Test filter = AddressSanitizerInterface*
[==========] Running 14 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 14 tests from AddressSanitizerInterface
[ RUN      ] AddressSanitizerInterface.GetEstimatedAllocatedSize
[       OK ] AddressSanitizerInterface.GetEstimatedAllocatedSize (0 ms)
[ RUN      ] AddressSanitizerInterface.GetAllocatedSizeAndOwnershipTest
[       OK ] AddressSanitizerInterface.GetAllocatedSizeAndOwnershipTest (5303 ms)
[ RUN      ] AddressSanitizerInterface.GetCurrentAllocatedBytesTest
[       OK ] AddressSanitizerInterface.GetCurrentAllocatedBytesTest (0 ms)
[ RUN      ] AddressSanitizerInterface.GetHeapSizeTest
[       OK ] AddressSanitizerInterface.GetHeapSizeTest (1884 ms)
[ RUN      ] AddressSanitizerInterface.GetFreeBytesTest
[       OK ] AddressSanitizerInterface.GetFreeBytesTest (1905 ms)
[ RUN      ] AddressSanitizerInterface.ManyThreadsWithStatsStressTest
[       OK ] AddressSanitizerInterface.ManyThreadsWithStatsStressTest (12811 ms)
[ RUN      ] AddressSanitizerInterface.ExitCode
[       OK ] AddressSanitizerInterface.ExitCode (6096 ms)
[ RUN      ] AddressSanitizerInterface.DeathCallbackTest
[       OK ] AddressSanitizerInterface.DeathCallbackTest (1839 ms)
[ RUN      ] AddressSanitizerInterface.SimplePoisonMemoryRegionTest
[       OK ] AddressSanitizerInterface.SimplePoisonMemoryRegionTest (8139 ms)
[ RUN      ] AddressSanitizerInterface.OverlappingPoisonMemoryRegionTest
[       OK ] AddressSanitizerInterface.OverlappingPoisonMemoryRegionTest (10992 ms)
[ RUN      ] AddressSanitizerInterface.PushAndPopWithPoisoningTest
[       OK ] AddressSanitizerInterface.PushAndPopWithPoisoningTest (32516 ms)
[ RUN      ] AddressSanitizerInterface.PoisoningStressTest
[       OK ] AddressSanitizerInterface.PoisoningStressTest (239 ms)
[ RUN      ] AddressSanitizerInterface.SetErrorReportCallbackTest
[       OK ] AddressSanitizerInterface.SetErrorReportCallbackTest (2212 ms)
[ RUN      ] AddressSanitizerInterface.GetOwnershipStressTest
[       OK ] AddressSanitizerInterface.GetOwnershipStressTest (2080243 ms)
[----------] 14 tests from AddressSanitizerInterface (2164194 ms total)

[----------] Global test environment tear-down
[==========] 14 tests from 1 test case ran. (2164289 ms total)

Ok, running only AddressSanitizerInterface* does not spawn additional processes. Trying
Shark.

Reported by glider@google.com on 2012-03-19 10:19:09

@ramosian-glider
Copy link
Member Author

seems to work find now, I re-enabled the test on Mac. 
I guess the test was swapping on a small machine. 

Reported by konstantin.s.serebryany on 2012-05-22 07:48:37

  • Status changed: Fixed

@ramosian-glider
Copy link
Member Author

Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:12:58

  • Labels added: ProjectAddressSanitizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant