MB-11876 Check for new priority buckets after wakeup

If threads do not check for the presence of newly registered
buckets, then a rare race condition can happen where a thread
is unaware of the presence of a low priority bucket and keeps
continously checking the high priority Q which has no work.
This would block normal shutdown

Change-Id: Ic59ccbed69c205251e7897f349445d8982ec7be5
Reviewed-on: http://review.couchbase.org/40311
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
Have at least 1 unit test with high priority bucket

Change-Id: Icc92c9455c13ca1af21eb285c72b8a8f3555cf6b
Reviewed-on: http://review.couchbase.org/40313
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>
MB-11847: [Warmup] Estimated value count with full eviction

In loadingKVPairs phase, set estimated value count equal
to the estimated item count, as no keys have been warmed
up yet, when in full eviction mode.

Change-Id: Id74237c96e0c144d9a9b94e0670f4975739e7914
Reviewed-on: http://review.couchbase.org/40304
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: abhinav dangeti <abhinav@couchbase.com>
MB-11884: Consider min_item_threshold in full eviction

In this case, as warmed up keys always matches warmed
up values, we can mark the min item threshold using
warmup's estimated item count.

Change-Id: Ibd1d58edd15be877c24ef794615fe0d56f9fc675
Reviewed-on: http://review.couchbase.org/40308
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: abhinav dangeti <abhinav@couchbase.com>
MB-11872: Compile failure on (some?) Debian 7 systems

Building from a Debian 7 setup under SmartOS works out of the box,
but one of our builders does not work for some reason. From looking
at the preprocessed file it doesn't define linux like our other
systems do. Extend the test to work for __linux__ and __linux as
well.

Change-Id: I4a7cf304ab8bfddb6cc117e9064165e1eb16b66e
Reviewed-on: http://review.couchbase.org/40297
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>
fix copy paste bug to set max non-io at runtime

Change-Id: I097e5fc5d926387dff8874427d373e41e383f64e
Reviewed-on: http://review.couchbase.org/40317
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>