<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_build_kati/affinity.cc, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/'/>
<entry>
<title>Refactor source tree into directories</title>
<updated>2020-06-27T01:52:06+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2020-06-27T01:46:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=979e7ae6e417ae4ee45e835104b66191ae16a14c'/>
<id>979e7ae6e417ae4ee45e835104b66191ae16a14c</id>
<content type='text'>
Now instead of almost every file in the top level, move the old go code
into its own directory 'golang', and the C++ code into it's own 'src'

Also removes a few obsolete scripts that were used to work on Android
before Android fully switched to Kati.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now instead of almost every file in the top level, move the old go code
into its own directory 'golang', and the C++ code into it's own 'src'

Also removes a few obsolete scripts that were used to work on Android
before Android fully switched to Kati.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reformat with clang-format-9</title>
<updated>2020-06-12T04:20:36+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2020-06-12T00:49:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=546261a74b75581fb35721b8def124821f2edb53'/>
<id>546261a74b75581fb35721b8def124821f2edb53</id>
<content type='text'>
Travis was using clang-format-7

Change-Id: Ia9b6e2490927ebc20ec6549d39ee70c11bfbb766
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Travis was using clang-format-7

Change-Id: Ia9b6e2490927ebc20ec6549d39ee70c11bfbb766
</pre>
</div>
</content>
</entry>
<entry>
<title>Use std::random_device instead of initializing via getpid</title>
<updated>2019-01-11T22:27:33+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2019-01-11T22:27:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=59e7b3e05f1b8553f2c6e9fa329543d8b42fca8e'/>
<id>59e7b3e05f1b8553f2c6e9fa329543d8b42fca8e</id>
<content type='text'>
getpid worked fine for this until we started trying to run Kati within a
pid namespace (via nsjail). Then it consistently got the same pid, which
resulted in multiple copies of Kati all running on the same CPU.

Change-Id: If50846f742c3898ca92e21e0d2c78ad8e34d0128
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
getpid worked fine for this until we started trying to run Kati within a
pid namespace (via nsjail). Then it consistently got the same pid, which
resulted in multiple copies of Kati all running on the same CPU.

Change-Id: If50846f742c3898ca92e21e0d2c78ad8e34d0128
</pre>
</div>
</content>
</entry>
<entry>
<title>`clang-format -i -style=file *.cc *.h`</title>
<updated>2017-10-12T05:20:49+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2017-10-12T05:17:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=3ce083f01d6e62e9fb9b328e312d97a074fe6128'/>
<id>3ce083f01d6e62e9fb9b328e312d97a074fe6128</id>
<content type='text'>
Change-Id: I62a87c5d8309b21265e904c0aeb9b3e094c9024a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I62a87c5d8309b21265e904c0aeb9b3e094c9024a
</pre>
</div>
</content>
</entry>
<entry>
<title>Randomize cpu affinity</title>
<updated>2017-02-24T02:41:50+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2017-02-23T07:59:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=5db7f7c46b94424be56db9aa5af4ae537252a703'/>
<id>5db7f7c46b94424be56db9aa5af4ae537252a703</id>
<content type='text'>
Continue to lock kati to one or two CPUs, but pick one CPU at random,
and pick another CPU next to it. This dramatically speeds up cases where
more than one Kati instance is running at a time.

There's a multiproduct_build tool in Android that attempts to run Kati
on every build configuration present in the tree. My machine has 48
(including hyperthreading) cpu cores, with 64GB of ram. Before this
change, it would take ~12 minutes to build all 59 configurations, 12 at
a time. After this change it takes 3 minutes.

There doesn't seem to be any significant change in timings for
standalone builds. It looks like there was 1-2% difference with my
previous change that chose two completely random CPUs, but choosing two
that are likely hyperthreaded, or at least on the same chip helps.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Continue to lock kati to one or two CPUs, but pick one CPU at random,
and pick another CPU next to it. This dramatically speeds up cases where
more than one Kati instance is running at a time.

There's a multiproduct_build tool in Android that attempts to run Kati
on every build configuration present in the tree. My machine has 48
(including hyperthreading) cpu cores, with 64GB of ram. Before this
change, it would take ~12 minutes to build all 59 configurations, 12 at
a time. After this change it takes 3 minutes.

There doesn't seem to be any significant change in timings for
standalone builds. It looks like there was 1-2% difference with my
previous change that chose two completely random CPUs, but choosing two
that are likely hyperthreaded, or at least on the same chip helps.
</pre>
</div>
</content>
</entry>
<entry>
<title>[C++] add +build ignore magic comment for go build</title>
<updated>2016-11-28T17:52:11+00:00</updated>
<author>
<name>Koichi Shiraishi</name>
<email>zchee.io@gmail.com</email>
</author>
<published>2016-09-06T06:05:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=df8cd0596bc8b7a92767d9290fdce59fd4355460'/>
<id>df8cd0596bc8b7a92767d9290fdce59fd4355460</id>
<content type='text'>
Signed-off-by: Koichi Shiraishi &lt;zchee.io@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Koichi Shiraishi &lt;zchee.io@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[C++] Set CPU affinity</title>
<updated>2016-02-16T04:56:27+00:00</updated>
<author>
<name>Shinichiro Hamaji</name>
<email>shinichiro.hamaji@gmail.com</email>
</author>
<published>2016-02-16T04:49:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_build_kati/commit/?id=1a444a870705b263cb4ee080ddfafde42c0f5563'/>
<id>1a444a870705b263cb4ee080ddfafde42c0f5563</id>
<content type='text'>
Sticking to a single processor improves the performance while
we are running only a single thread.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sticking to a single processor improves the performance while
we are running only a single thread.
</pre>
</div>
</content>
</entry>
</feed>
