Commit Graph

150 Commits

Author SHA1 Message Date
Craig Tiller d41a4a720f s/gpr_slice/grpc_slice, and move around tests, impls 2016-10-26 16:16:06 -07:00
Craig Tiller 8f67b647fd Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-10-20 15:53:04 -07:00
Vijay Pai d923583768 Minor cleanup - remove an unneeded header, mark a class final, explicitly specify parent class 2016-10-18 11:40:57 -07:00
Craig Tiller 20afa3d7c9 BufferPool --> ResourceQuota 2016-10-17 14:52:14 -07:00
Craig Tiller 654b242ce7 Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-17 14:31:44 -07:00
Craig Tiller 14c836fcd1 Delambdaify 2016-10-17 13:56:13 -07:00
Craig Tiller b019d61f9a Fix benchmark shutdown 2016-10-17 13:23:51 -07:00
Craig Tiller 0c80c7d12c Collecting failure status progress 2016-09-28 16:30:55 -07:00
Vijay Pai 4f17395b81 Properly use unique_ptr rather than explicitly
deleting server context wrappers in QPS test
2016-08-05 01:32:34 -07:00
Craig Tiller b23239b6d8 Merge branch 'histo' of github.com:vjpai/grpc into delayed-write 2016-07-15 06:37:41 -07:00
Vijay Pai 5fde20d9f0 clang-format 2016-07-13 19:25:59 -07:00
Vijay Pai ad7c527618 Temporary workaround by setting up a deadline on server shutdown.
This reveals an issue that needs to be solved:
D0713 14:48:28.049861213   14503 server.c:704]               Waiting for 44 channels and 0/1 listeners to be destroyed before shutting down server
2016-07-13 14:51:44 -07:00
Vijay Pai a831651aa5 Unify and make consistent the per-thread shutdown process 2016-07-13 10:32:26 -07:00
Craig Tiller b5ee1cdcb9 Dont stall shutting down server 2016-07-13 08:39:35 -07:00
Craig Tiller e64d693050 Better fine-tuning 2016-07-12 20:53:16 -07:00
Craig Tiller b19dbead67 Make request freelists per cq, to allow drastically higher requested call counts 2016-07-12 15:33:11 -07:00
vjpai 711472f846 Remove unused gflags and gtest includes 2016-05-31 12:57:38 -07:00
Craig Tiller e67f7b6b54 Fix timeout on async server shutdown
Server was continuing to make requests for new calls forever, which were
starving out the shutdown sequence. Change order and win.
2016-05-23 14:50:24 -07:00
Jan Tattermusch b85e9d43f0 fix formatting 2016-05-11 10:21:45 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
vjpai 63326281d7 1. Remove all deadlines from the RPCs and shutdown in this code.
These tests (especially unconstrained versions) can get very
   backlogged and may take a while to finish. We sometimes flake waiting
   for that. This is not hazardous (IMO), as the scripts that run these
   tests already have timeouts to make sure that these don't truly go on
   forever.

2. Make the time spent in the benchmark phase actually be
   benchmark_seconds rather than benchmark_seconds-warmup_seconds
   as it is currently.
2016-03-14 17:12:52 -07:00
Vijay Pai 8ca0faaf52 use timeouts with proper fixture multipliers rather than raw,
since tsan slows things down a lot and may complicate issues such
as shutdown.
2016-02-13 00:25:45 -08:00
Vijay Pai 5919e81ff1 Remove host option from ServerConfig proto since it is error-prone and
may cause inter-language confusion.
2016-01-29 01:24:05 -08:00
David Garcia Quintas b4e51b52bd Merge branch 'master' of github.com:grpc/grpc into sync-async-plus-interfaces 2016-01-27 19:57:58 -08:00
Vijay Pai 16e45702ac clang-format 2016-01-27 14:51:12 -08:00
Vijay Pai 7d8335f875 Don't log newlines 2016-01-27 12:00:41 -08:00
Vijay Pai 32baa5e622 Allow dynamic sizing of async client and server thread pools 2016-01-27 10:01:41 -08:00
vjpai a24e9d774c Sanity checks and asan fix 2016-01-27 09:45:29 -08:00
yang-g 8053d2feb6 Merge remote-tracking branch 'upstream/master' into sync_async_mix 2016-01-15 08:53:15 -08:00
David Garcia Quintas 2bf574f814 Added back trailing newlines 2016-01-14 15:55:03 -08:00
yang-g b9a1377fab Merge remote-tracking branch 'upstream/master' into sync_async_mix 2016-01-14 09:50:48 -08:00
Craig Tiller 754bd26e28 clang-format code 2016-01-14 06:10:15 -08:00
murgatroid99 eeb02ba77a Update copyrights again 2016-01-13 20:43:33 -08:00
yang-g d42262e22e merge with head 2016-01-13 15:32:51 -08:00
yang-g dc548ed65d merge with head 2016-01-13 10:42:19 -08:00
Vijay Pai 5bd6f2e190 Merge branch 'master' into bbuf 2016-01-11 10:33:39 -08:00
Vijay Pai 9f991e252d More changes needed for generic support 2016-01-07 14:08:09 -08:00
Craig Tiller 15f383c6cc Exploratory refactoring for mixed sync/async methods on the same C++ service 2016-01-07 12:45:32 -08:00
Vijay Pai 31c0c7949f clang-format 2016-01-07 11:43:46 -08:00
vjpai de332dfcac Refactor server side to support generic tests. 2016-01-07 10:20:46 -08:00
Craig Tiller 1b4e33029e Consolidate C++ proto files under src/proto
- make the directory structure match the package structure
- sanitize the package structure (test --> testing)
- add auto-detection of proto file dependencies
2015-12-17 16:35:00 -08:00
Jan Tattermusch c5ebbd5b8f use new perf proto options in c++ 2015-11-18 17:17:34 -08:00
vjpai fba20c987d Address some review comments about signal and restoring qps_test_with_poll
Make payloads respect the new defaults
2015-11-04 14:49:17 -08:00
Vijay Pai ce84670628 clang-format 2015-11-04 00:30:12 -08:00
vjpai 780a7f205d Add in security support, make payload protos configurable
Have not yet added tests with security support, coming soon
2015-11-04 00:19:09 -08:00
vjpai d08a738166 Cleanup some names
Remove some unused options and make server_threads relevant
Start stubbing out better qps/core calculations
2015-11-02 16:45:08 -08:00
vjpai 72a6332138 QPS worker no longer needs to specify server port on command line. This is part
of the proto if desired, or just goes to pick_unused_port_or_die if not
specified
2015-10-29 02:23:11 -07:00
vjpai 119c103ab0 Split up into a new service proto, use proper service suffix, add a
reset option to the mark, create a closed loop config params (empty
message) for consistency with other tests.
2015-10-29 01:21:04 -07:00
vjpai 754751e3c6 Numerous proto changes to make things more sane and fix some outstanding issues 2015-10-28 09:16:22 -07:00
vjpai 52bfb2564f Split qpstest.proto into two parts - one for performance stats and
one for control.
Eliminate the use of our own SimpleRequest and SimpleResponse and
instead share the one from end2end testing
2015-10-21 07:50:49 -07:00
vjpai 0cc1341199 Move qpstest.proto to a common area (test/proto) instead of test/cpp/qps 2015-10-19 12:21:45 -07:00
Craig Tiller 71a0f9d3b0 Fix clang-format script 2015-09-28 17:22:01 -07:00
Craig Tiller 8cf0ed03d1 Fix mac build 2015-09-10 22:37:25 -07:00
Craig Tiller 138de60a1e Merge pull request #3174 from vjpai/shutitdown2
Put timeout on QPS test server shutdown
2015-09-10 21:56:37 -07:00
Nicolas "Pixel" Noble 59588c6162 Removing pessimizing moves.
Pass #2.
2015-09-03 02:29:30 +02:00
vjpai d514b21cc8 Put timeout on server shutdown 2015-08-31 16:27:35 -07:00
Craig Tiller 1ebb7c885e Hand-written changes 2015-08-31 15:53:36 -07:00
Julien Boeuf 5be92a316d Shuffling headers around. 2015-08-28 16:28:18 -07:00
yang-g 9e2f90cd06 headers reorg 2015-08-21 15:35:03 -07:00
vjpai b1db869e1a Address concerns from review 2015-08-11 22:41:02 -07:00
Vijay Pai 458faa98ce Eliminate user of lambda in server definition 2015-07-31 10:30:13 -07:00
Vijay Pai 1f3e6c1ebe Start switching everything to dynamic pool 2015-07-23 16:18:21 -07:00
Craig Tiller af26143b6f Merge github.com:grpc/grpc into i-want-to-wait-free 2015-07-17 14:36:45 -07:00
vjpai a2e1bb1577 Change name of thread_pool files to fixed_size_thread_pool when
appropriate
2015-07-15 16:49:49 -07:00
Vijay Pai 69f2410086 Make thread_pool.h a public header
Rename ThreadPool -> FixedSizeThreadPool to allow for later introduction
of DynamicSizeThreadPool
2015-07-15 12:33:37 -07:00
Craig Tiller ca83dc8109 Adjust oustanding request count to meet new server algorithm 2015-07-15 11:43:26 -07:00
Craig Tiller 27df2cf69c Pluck some low hanging concurrency fruit
Make the shutdown flag on servers be per thread to save contention on
the lock that must guard it.
2015-07-01 15:11:29 -07:00
Craig Tiller 51f938f169 Make async server use one CQ per server thread 2015-06-09 23:34:01 -07:00
Craig Tiller 250e96d941 Dont serialize new call requests under the server test lock 2015-06-08 09:51:43 -07:00
David Garcia Quintas c9516d4e28 Fixed memory leak in server_async 2015-06-02 13:41:48 -07:00
Craig Tiller 8ebcec484f clang-format 2015-05-21 13:55:22 -07:00
Craig Tiller aeea2f2203 Fix shutdown crash in async streaming test 2015-05-21 13:54:42 -07:00
Craig Tiller 5c8737d171 clang-format qps code - it was getting out of hand 2015-05-21 11:42:17 -07:00
Craig Tiller f9e6adf998 Completion queue binding for new requests API change
Move completion queue binding for new requests to the new request
request time, not server instantiation time.
2015-05-06 11:45:59 -07:00
Craig Tiller 66f37b477d Merge github.com:google/grpc into qps
Conflicts:
	Makefile
2015-04-10 08:28:31 -07:00
Nicolas "Pixel" Noble 0caebbfcfe Splitting gRPC service class codegen into its own set of files. 2015-04-09 23:08:51 +02:00
Craig Tiller 8221e40ac0 Indentation fixes, s/11/1/g 2015-04-09 12:23:21 -07:00
Vijay Pai 49673133b3 Remove unused header file for profiler 2015-03-31 12:39:51 -07:00
Vijay Pai 9032adcbef Fix conflicts 2015-03-26 10:32:52 -07:00
Vijay Pai 82dd80abc6 Elminate range-based fors and work around some other limitations in older compilers 2015-03-24 10:36:08 -07:00
Vijay Pai 1da729ad7d Merge branch 'qps-stream' of https://github.com/vjpai/grpc into vjpai-qps-stream 2015-03-23 12:52:56 -07:00
Vijay Pai 8ad32091e6 Make sure that nothing gets added to cq after shutdown 2015-03-23 12:44:28 -07:00
vjpai 46f65239cf Added streaming C++ tests for sync and sync cases 2015-03-23 10:10:27 -07:00
Jan Tattermusch 5e36d0d474 Merge pull request #1093 from nicolasnoble/windows
Various Windows fixes.
2015-03-19 10:29:47 -07:00
Nicolas Noble cfd6073a66 Various Windows fixes.
-) using dupenv_s instead of getenv_s and calling strdup ourselves.
-) few impossible-to-obtain if checks.
-) various signed/unsigned casting.
-) using time_t instead of time32_t
-) checking output of FormatMessage for failures.
-) don't redefine _WIN32_WINNT without undefining it first.
-) fixed msvc's interlocked casting.
-) renamed AddPort to AddListeningPort.
-) added protobuf's third_party includes to search path.
-) added a missing definition for inet_ntop in mingw32.
-) removed useless declarations.
2015-03-19 04:21:22 +01:00
Yang Gao 6baa9b67ad clang-format c++ code 2015-03-17 10:49:39 -07:00
Craig Tiller 68de8e91cc Merge github.com:grpc/grpc into credit 2015-03-05 15:45:46 -08:00
Craig Tiller a182bf12b0 clang-format 2015-03-04 13:54:39 -08:00
Craig Tiller d6479d6cc4 Async server works 2015-03-04 12:50:11 -08:00
Craig Tiller e7460e87d3 Merge github.com:grpc/grpc into credit 2015-03-03 13:48:40 -08:00
Vijay Pai acf6f318fc Better use of threads, avoid thread safety issues on destructor with
a proper join.

Also had been misusing EXPECT_EQ, as well as actually having an invalid
expectation on the ok field. Now it should be sane.
2015-03-02 15:13:39 -08:00
Craig Tiller 61691f92c3 Merge github.com:grpc/grpc into credit 2015-03-02 08:51:52 -08:00
vjpai 4e1e1bc28e Revert "Use typedefs to avoid triply-nested function templates"
This reverts commit 45b0bc4bec.

This revert is being done because the compilers on Travis don't
understand the C++11 template/using syntax.
2015-02-27 23:47:12 -08:00
vjpai 45b0bc4bec Use typedefs to avoid triply-nested function templates 2015-02-27 16:54:17 -08:00
vjpai 5b39f9a9fb refresh -> Reset 2015-02-27 09:33:00 -08:00
vjpai 6e2e64a8b4 Stop abusing operator() overloading 2015-02-27 09:28:28 -08:00
vjpai 3c11066217 override->GRPC_OVERRIDE 2015-02-27 07:17:16 -08:00
Vijay Pai 64ac47f389 clang-format all these files 2015-02-26 17:59:51 -08:00
vjpai dea740f329 New multithreaded async C++ tests. The server is architected the way
that it should be with multiple threads waiting on a single
completion queue.
The client currently uses a separate completion
queue per-thread, as trying to do a single unified queue was leading
to crashes for me. I need to figure that out.
2015-02-26 16:35:35 -08:00