mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
Dropping caches (writing back all dirty pages to disk and clearing all the caches) is not necessary for factory tests. It can reduce the latency significantly. The scale is about 27s -> 3s, for running 2 empty tests. Review URL: http://codereview.chromium.org/1780011
18 lines
405 B
Bash
Executable File
18 lines
405 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
echo "Create global_config.ini in autotest directory."
|
|
|
|
pushd ${STATEFUL_DIR}
|
|
|
|
cat > ${STATEFUL_DIR}/home/autotest-client/global_config.ini <<EOF
|
|
[CLIENT]
|
|
drop_caches: False
|
|
drop_caches_between_iterations: False
|
|
EOF
|
|
|
|
popd
|