Re: Review Request 43558: Sped up ExamplesTest.PersistentVolumeFramework.

2016-08-12 Thread Benjamin Mahler

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43558/#review145655
---


Ship it!




Ship It!

- Benjamin Mahler


On Aug. 12, 2016, 2:38 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43558/
> ---
> 
> (Updated Aug. 12, 2016, 2:38 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Benjamin Mahler, and Jie Yu.
> 
> 
> Bugs: MESOS-4663
> https://issues.apache.org/jira/browse/MESOS-4663
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> By lowering `tasks_per_shard`, this patch reduces the tasks lauched to
> speed up `ExamplesTest.PersistentVolumeFramework`.
> 
> 
> Diffs
> -
> 
>   src/examples/persistent_volume_framework.cpp 
> fe2837cfffb6dd251ccb9c93197f623d0c55fb36 
> 
> Diff: https://reviews.apache.org/r/43558/diff/
> 
> 
> Testing
> ---
> 
> Repeat test in CentOS 7.1
> ```
> sudo ./bin/mesos-tests.sh 
> --gtest_filter="ExamplesTest.PersistentVolumeFramework" --gtest_repeat=200 
> --gtest_break_on_failure
> ```
> 
> Before apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (3505 ms)
> [--] 1 test from ExamplesTest (3510 ms total)
> ```
> 
> After apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (2479 ms)
> [--] 1 test from ExamplesTest (2483 ms total)
> ```
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 43558: Sped up ExamplesTest.PersistentVolumeFramework.

2016-08-12 Thread Benjamin Mahler


> On Aug. 10, 2016, 7:23 p.m., Benjamin Mahler wrote:
> > src/examples/persistent_volume_framework.cpp, lines 402-410
> > 
> >
> > Can you give some context on why lowering these speeds up the test? How 
> > much does it speed it up?
> 
> haosdent huang wrote:
> Hi, @bmahler The most effective snippet is
> 
> ```
> export MESOS_AUTHENTICATION_TIMEOUT=200ms
> ```
> 
> which we committed before. I test this patch again, seems only bring 
> little speed up.
> 
> Before apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (3505 ms)
> [--] 1 test from ExamplesTest (3510 ms total)
> ```
> 
> After apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (2493 ms)
> [--] 1 test from ExamplesTest (2497 ms total)
> ```
> 
> Do you think we should discard this?
> 
> Anindya Sinha wrote:
> I think the improvement is not due to the reduction in number of shards 
> (since the ACCEPT call consolidates offer operations for all shards), but due 
> to the reduction in number of tasks per shard (since each of the tasks are 
> launched in separate ACCEPT calls).
> 
> Benjamin Mahler wrote:
> Why not have defaults of 1 shard and 1 task per shard? Seems the default 
> should either be: 1 or run forever. Also, we should probably explicitly set 
> these in the persistent_volume_framework_test.sh.
> 
> Anindya Sinha wrote:
> Default of 1 shard is fine, but the way is structured I think default for 
> tasks per shard should be 2. I think the 1st task in a shard does a "touch 
> volume/persisted", and subsequent tasks does a "test -f volume/persisted". So 
> with 2 tasks per shard, we can test content of persistent volume (which have 
> a life cycle across task boundaries).
> 
> haosdent huang wrote:
> Seems nothing different after change to 1 shard.
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (2495 ms)
> [--] 1 test from ExamplesTest (2500 ms total)
> 
> [--] Global test environment tear-down
> [==] 1 test from 1 test case ran. (2529 ms total)
> [  PASSED  ] 1 test.
> ```

Anindya thanks for the comment! Looking at the code that makes sense.


- Benjamin


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43558/#review145390
---


On Aug. 12, 2016, 2:38 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43558/
> ---
> 
> (Updated Aug. 12, 2016, 2:38 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Benjamin Mahler, and Jie Yu.
> 
> 
> Bugs: MESOS-4663
> https://issues.apache.org/jira/browse/MESOS-4663
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> By lowering `tasks_per_shard`, this patch reduces the tasks lauched to
> speed up `ExamplesTest.PersistentVolumeFramework`.
> 
> 
> Diffs
> -
> 
>   src/examples/persistent_volume_framework.cpp 
> fe2837cfffb6dd251ccb9c93197f623d0c55fb36 
> 
> Diff: https://reviews.apache.org/r/43558/diff/
> 
> 
> Testing
> ---
> 
> Repeat test in CentOS 7.1
> ```
> sudo ./bin/mesos-tests.sh 
> --gtest_filter="ExamplesTest.PersistentVolumeFramework" --gtest_repeat=200 
> --gtest_break_on_failure
> ```
> 
> Before apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (3505 ms)
> [--] 1 test from ExamplesTest (3510 ms total)
> ```
> 
> After apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (2479 ms)
> [--] 1 test from ExamplesTest (2483 ms total)
> ```
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 43558: Sped up ExamplesTest.PersistentVolumeFramework.

2016-08-12 Thread Mesos ReviewBot

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43558/#review145632
---



Patch looks great!

Reviews applied: [43558]

Passed command: export OS='ubuntu:14.04' BUILDTOOL='autotools' COMPILER='gcc' 
CONFIGURATION='--verbose' ENVIRONMENT='GLOG_v=1 MESOS_VERBOSE=1'; 
./support/docker_build.sh

- Mesos ReviewBot


On Aug. 12, 2016, 2:38 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43558/
> ---
> 
> (Updated Aug. 12, 2016, 2:38 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov, Benjamin Mahler, and Jie Yu.
> 
> 
> Bugs: MESOS-4663
> https://issues.apache.org/jira/browse/MESOS-4663
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> By lowering `tasks_per_shard`, this patch reduces the tasks lauched to
> speed up `ExamplesTest.PersistentVolumeFramework`.
> 
> 
> Diffs
> -
> 
>   src/examples/persistent_volume_framework.cpp 
> fe2837cfffb6dd251ccb9c93197f623d0c55fb36 
> 
> Diff: https://reviews.apache.org/r/43558/diff/
> 
> 
> Testing
> ---
> 
> Repeat test in CentOS 7.1
> ```
> sudo ./bin/mesos-tests.sh 
> --gtest_filter="ExamplesTest.PersistentVolumeFramework" --gtest_repeat=200 
> --gtest_break_on_failure
> ```
> 
> Before apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (3505 ms)
> [--] 1 test from ExamplesTest (3510 ms total)
> ```
> 
> After apply the patch,
> 
> ```
> [   OK ] ExamplesTest.PersistentVolumeFramework (2479 ms)
> [--] 1 test from ExamplesTest (2483 ms total)
> ```
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 43558: Sped up ExamplesTest.PersistentVolumeFramework.

2016-08-12 Thread haosdent huang

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43558/
---

(Updated Aug. 12, 2016, 2:38 p.m.)


Review request for mesos, Alexander Rukletsov, Benjamin Mahler, and Jie Yu.


Bugs: MESOS-4663
https://issues.apache.org/jira/browse/MESOS-4663


Repository: mesos


Description
---

By lowering `tasks_per_shard`, this patch reduces the tasks lauched to
speed up `ExamplesTest.PersistentVolumeFramework`.


Diffs
-

  src/examples/persistent_volume_framework.cpp 
fe2837cfffb6dd251ccb9c93197f623d0c55fb36 

Diff: https://reviews.apache.org/r/43558/diff/


Testing (updated)
---

Repeat test in CentOS 7.1
```
sudo ./bin/mesos-tests.sh 
--gtest_filter="ExamplesTest.PersistentVolumeFramework" --gtest_repeat=200 
--gtest_break_on_failure
```

Before apply the patch,

```
[   OK ] ExamplesTest.PersistentVolumeFramework (3505 ms)
[--] 1 test from ExamplesTest (3510 ms total)
```

After apply the patch,

```
[   OK ] ExamplesTest.PersistentVolumeFramework (2479 ms)
[--] 1 test from ExamplesTest (2483 ms total)
```


Thanks,

haosdent huang



Re: Review Request 43558: Sped up ExamplesTest.PersistentVolumeFramework.

2016-08-12 Thread haosdent huang

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43558/
---

(Updated Aug. 12, 2016, 2:37 p.m.)


Review request for mesos, Alexander Rukletsov, Benjamin Mahler, and Jie Yu.


Changes
---

Address @bmahler comment.


Summary (updated)
-

Sped up ExamplesTest.PersistentVolumeFramework.


Bugs: MESOS-4663
https://issues.apache.org/jira/browse/MESOS-4663


Repository: mesos


Description (updated)
---

By lowering `tasks_per_shard`, this patch reduces the tasks lauched to
speed up `ExamplesTest.PersistentVolumeFramework`.


Diffs (updated)
-

  src/examples/persistent_volume_framework.cpp 
fe2837cfffb6dd251ccb9c93197f623d0c55fb36 

Diff: https://reviews.apache.org/r/43558/diff/


Testing
---

Repeat test in CentOS 7.1
```
sudo ./bin/mesos-tests.sh 
--gtest_filter="ExamplesTest.PersistentVolumeFramework" --gtest_repeat=200 
--gtest_break_on_failure
```


Thanks,

haosdent huang