Good start, but let's move this discussion public.
On Tue, Aug 23, 2011 at 3:13 PM, Daniel Lezcano
<daniel.lezcano(a)linaro.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Hi all,
>
> I did the following cpuset configuration:
>
> if [ ! -d /sys/fs/cgroup ]; then
> echo "cgroup not supported by the kernel"
> else
> mount -t cgroup cgroup /sys/fs/cgroup
>
> # needed to have the cgroup values inherited from
> # the parent cgroup
> echo 1 > /sys/fs/cgroup/cgroup.clone_children
>
> # create an empty cgroup 'cpu0'
> mkdir /sys/fs/cgroup/cpu0
>
> # create an empty cgroup 'cpu1'
> mkdir /sys/fs/cgroup/cpu1
>
> # assign cpu number '0' for cgroup cpu0
> echo 0 > /sys/fs/cgroup/cpu0/cpuset.cpus
>
> # move outself to this new cgroup
> echo $$ > /sys/fs/cgroup/cpu0
>
> # move all the tasks to the cpu0 cgroup
> # kernel threads won't be moved, don't worry about the
> # the errors.
> for i in $(cat /sys/fs/cgroup/tasks); do
> echo $i > /sys/fs/cgroup/cpu0/tasks || echo "failed to
> add pid $i/$(cat /proc/$i/comm)"
> done
>
> # assign a cpu for cgroup cpu1
> echo 1 > /sys/fs/cgroup/cpu1/cpuset.cpus
>
> # make cpu1 exclusive so processes belonging
> # to the other cgroups won't be able to use it.
> echo 1 > /sys/fs/cgroup/cpu1/cpuset.cpu_exclusive
> fi
>
>
> At this point, most of the processes have been moved to the 'cpu0'
> cgroup and will use the cpu0 only. That does not prevent the cpu1 to be
> used by the kernel threads. Any application launched will run on cpu0 only.
>
> After running 10 infinite loops, the cpu accounting gives:
>
> cat /sys/fs/cgroup/cpu0/cpuacct.usage_percpu
> 418943579549 0
>
> cat /sys/fs/cgroup/cpu1/cpuacct.usage_percpu
> 0 0
>
> But the system is:
>
> cat /sys/fs/cgroup/cpuacct.usage_percpu
> 456741213041 30734572583
>
> My guess is that reflects the kernel booted with the two cpus before we
> created the cgroup. I am investigation the 'isolcpus' kernel parameter.
>
> I think it is a good starting point to do some consumption measurements.
>
> Mike, Vincent, what do you think ? Do you need more informations or
> anything else ?
>
> Thanks
> -- Daniel
Hi
Some time ago we agreed that not everyone here uses Ubuntu distribution
and decided to provide so called 'generic linux' cross toolchain.
Recently I managed to get it done and now need brave testers to tell is
it working or not.
Get it here: http://people.linaro.org/~hrw/generic-linux/ (64bit only)
Needed files are toolchain-11.07.tar.xz and init.sh script. Unpack
tarball from / so /opt/linaro/11.07/ will be populated and put init.sh
anywhere you want (it will be integrated into tarball later).
How to use:
$ source init.sh
this will add cross toolchain into PATH and also set LD_LIBRARY_PATH to
two directories:
- one with binutils libraries
- second with all extra libraries which may be needed
Feel free to experiment with second dir by removing files from there and
checking are system provided libs are fine too.
So far I checked this toolchain under few distributions:
- Ubuntu 10.04 'lucid' LTS
- Ubuntu 11.04 'natty'
- Fedora 14
- OpenSUSE 11.4
- CentOS 5.6
It failed only under CentOS (which was expected due to it's age).
How did I checked? So far compilation of 'gpm' and 'zlib' were tested.
Hi Wookey (and others that might be interested)
With Mutlistrap and qemu we've gotten live-build to be able to cross
build most of our images. The next step however in nano is to pull out
a number of the packages and in some cases replace them with busybox
components to get an even smaller rootfs. An important part of this is
to not include recommends AND not take into account required packages.
It would appear that multistrap is unable to ignore the required
packages. There are a number of them.
You will also note in the log below a number of the busybox
replacements explicitly conflict with their non-busybox brethren. In
the Multistrap package list, the non-busybox versions are not listed
yet Multistrap is pulling them in (as well as others I had removed).
Grepping through the Multistrap perl source I don't see a way forward
but I know you're the expert here. I would appreciate your thoughts.
Here's the log :
multistrap 2.1.6ubuntu3 using config/multistrap.config
Using foreign architecture: armel
multistrap building armel multistrap on 'amd64'
INF: Setting ./lib64 -> ./lib symbolic link.
Getting package lists: apt-get -o Apt::Architecture=armel -o
Dir::Etc::TrustedParts=/etc/apt/trusted.gpg.d -o
Dir::Etc::Trusted=/etc/apt/trusted.gpg -o Apt::Get::Download-Only=true
-o Apt::Install-Recommends=false -o Dir=/bld/nano-nano-cross/chroot/
-o Dir::Etc=/bld/nano-nano-cross/chroot/etc/apt/ -o
Dir::State=/bld/nano-nano-cross/chroot/var/lib/apt/ -o
Dir::State::Status=/bld/nano-nano-cross/chroot/var/lib/dpkg/status -o
Dir::Cache=/bld/nano-nano-cross/chroot/var/cache/apt/ update
[ERROR - 22.Aug.11 19:54:23]: Not on Blue network, aborting...
Get:1 http://ppa.launchpad.net natty Release.gpg [316B]
Ign http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/
natty/main Translation-en
Ign http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/
natty/main Translation-en_US
Get:2 http://ports.ubuntu.com natty Release.gpg [198B]
Ign http://ports.ubuntu.com/ natty/main Translation-en
Ign http://ports.ubuntu.com/ natty/main Translation-en_US
Ign http://ports.ubuntu.com/ natty/universe Translation-en
Ign http://ports.ubuntu.com/ natty/universe Translation-en_US
Get:3 http://ports.ubuntu.com natty Release [39.8kB]
Get:4 http://ppa.launchpad.net natty Release [9,753B]
Get:5 http://ppa.launchpad.net natty/main armel Packages [42.8kB]
Get:6 http://ports.ubuntu.com natty/main armel Packages [1,528kB]
Get:7 http://ports.ubuntu.com natty/universe armel Packages [5,867kB]
Fetched 7,488kB in 46s (162kB/s)
Reading package lists... Done
I: Calculating required packages.
apt-get -y -o Apt::Architecture=armel -o
Dir::Etc::TrustedParts=/etc/apt/trusted.gpg.d -o
Dir::Etc::Trusted=/etc/apt/trusted.gpg -o Apt::Get::Download-Only=true
-o Apt::Install-Recommends=false -o Dir=/bld/nano-nano-cross/chroot/
-o Dir::Etc=/bld/nano-nano-cross/chroot/etc/apt/ -o
Dir::State=/bld/nano-nano-cross/chroot/var/lib/apt/ -o
Dir::State::Status=/bld/nano-nano-cross/chroot/var/lib/dpkg/status -o
Dir::Cache=/bld/nano-nano-cross/chroot/var/cache/apt/ install
2.7-minimal adduser apt apt-transport-https apt-utils base-files
base-passwd bash bsdutils busybox-initramfs busybox-linaro-adduser
busybox-linaro-findutils busybox-linaro-grep busybox-linaro-hostname
busybox-linaro-mount busybox-linaro-nano busybox-linaro-tar
busybox-linaro-udhcpc busybox-syslogd ca-certificates console-setup
console-terminus coreutils cpio dash debconf debconf-i18n debianutils
diffutils dpkg dropbear e2fslibs e2fsprogs findutils gcc-4.5-base
gnupg gpgv grep gzip hostname ifupdown initramfs-tools
initramfs-tools-bin initscripts insserv iproute iputils-ping kbd
keyboard-configuration klibc-utils libacl1 libattr1 libblkid1
libbz2-1.0 libc-bin libc6 libcap2 libcomerr2 libcurl3-gnutls libdb4.8
libdbus-1-3 libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2
libgcc1 libgcrypt11 libglib2.0-0 libgnutls26 libgpg-error0
libgssapi-krb5-2 libk5crypto3 libkeyutils1 libklibc libkrb5-3
libkrb5support0 libldap-2.4-2 liblocale-gettext-perl liblzma2
libncurses5 libncursesw5 libnih-dbus1 libnih1 libpam-modules
libpam-modules-bin libpam-runtime libpam0g libpcre3 libplymouth2
libpng12-0 libpopt0 libreadline6 libsasl2-2 libselinux1 libsepol1
libslang2 libss2 libssl0.9.8 libstdc++6 libtasn1-3
libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl
libudev0 libusb-0.1-4 libuuid1 linaro-overlay linaro-overlay-minimal
locales login lsb-base makedev mawk module-init-tools mount mountall
multiarch-support ncurses-base ncurses-bin net-tools netbase
netcat-openbsd passwd perl-base plymouth procps python python-minimal
python2.7-minimal readline-common sed sensible-utils sudo sysv-rc
sysvinit-utils tar tzdata ubuntu-keyring udev upstart util-linux
xkb-data xz-utils zlib1g
Reading package lists... Done
Building dependency tree... Done
Note, selecting 'python2.7-minimal' for regex '2.7-minimal'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
busybox-linaro-adduser : Conflicts: adduser
busybox-linaro-grep : Conflicts: grep
busybox-linaro-hostname : Conflicts: hostname
busybox-linaro-mount : Conflicts: mount
busybox-linaro-tar : Conflicts: cpio
Conflicts: tar
--
Regards,
Tom
"We want great men who, when fortune frowns will not be discouraged."
- Colonel Henry Knox
Linaro.org │ Open source software for ARM SoCs
w) tom.gall att linaro.org
w) tom_gall att vnet.ibm.com
h) tom_gall att mac.com
Last meeting minutes : https://wiki.linaro.org/OfficeofCTO/2011-08-16
Status report link: https://wiki.linaro.org/OfficeofCTO/WeeklyReport
Summary of the highlights:
- work is continuing for ARMHF and by the end of the week we will have a
clear picture of what was done from the original targets for August.
- Device Tree: work is almost completed now from OCTO point of view,
patches coming through to support DT
- Boot architecture: ramping up after Connect. UEFI is a hot topic.
- Arm server: Work carried out on network boot, installation and
deployment of ARM servers. During August a Cobbler setup will be tested
and documented.
Best,
--
Ilias Biris ilias.biris(a)linaro.org
Project Manager, Linaro
M: +358504839608, IRC: ibiris Skype: ilias_biris
Linaro.org│ Open source software for ARM SoCs
Sure. I didn't list it because Android doesn't really support generic
USB (it will in Ice Cream Sandwich through a new USB device layer)
Alexander,
Would you add:
* USB
* Keyboard
* Mouse
On 17 August 2011 01:46, David Gilbert <david.gilbert(a)linaro.org> wrote:
> On 16 August 2011 23:09, Zach Pfeffer <zach.pfeffer(a)linaro.org> wrote:
>> Here's the proposed QA list. Comments and additions welcome. This list
>> is based off the Ubuntu Origen list at:
>>
>> https://wiki.linaro.org/Cycles/1107/BoardSupportStatus/Samsung/Origen/Ubuntu
>
> Hi Zach,
> I don't see USB testing in general in there; I'd have USB keyboard/mouse as
> a basic test for boards that support it and I'd make sure I'd test
> that on all USB
> controllers on the board where the board has more than one.
>
> Dave
>
On Mon, Aug 22, 2011 at 10:47 PM, Alexander Sack <asac(a)linaro.org> wrote:
> That looks suspiciously close to the code that we patched out in platform a
> while back to get 4.5/4.6 going in external/elfcopy/:
>
>
> http://android.git.linaro.org/gitweb?p=platform/external/elfcopy.git;a=comm…
>
> This seems to be still used in our linaro_android_2.3.5 builds still.
>
> maybe the benchmark has a copy of that code and needs the same patch? or
> its pulling in external/elfcopy and just needs to pull the
> linaro_android_2.3.5 branch?
>
>
turned out that benchmark.git has copies of soslim and elfcopy from a random
AOSP eclair build that were build with an unpatched elfcopy.c. Replacing
them with binaries from a fresh linaro build that has the patch from above
applied makes this work again.
Since we hit this problem with our platform builds earlier my guess would be
that we just have been lucky when building benchmarks so far. andy will work
around for now and will submit updated binaries to gerrit once release is
out.
> On Mon, Aug 22, 2011 at 10:33 PM, Andy Doan <andy.doan(a)linaro.org> wrote:
>
>> I'm hitting an issue building some of the tests in benchmark.git for
>> this cycle. The python test is a good example:
>>
>> http://pastebin.com/e7XeLrMd:
>> LINK SHARED LIBRARY: obj/libpython2.6.so
>> obj/Modules/posixmodule.o: In function `posix_tempnam':
>>
>> /home/doanac/linaro/android/benchmarks/bmarks-bins-2011-08/linaro-4.6/benchmark/python/src/Modules/posixmodule.c:7167:
>> warning: warning: tempnam() possibly used unsafely; consider using
>> mkstemp()
>> obj/Modules/posixmodule.o: In function `posix_tmpnam':
>>
>> /home/doanac/linaro/android/benchmarks/bmarks-bins-2011-08/linaro-4.6/benchmark/python/src/Modules/posixmodule.c:7214:
>> warning: warning: tmpnam() possibly used unsafely; consider using
>> mkstemp()
>> MAP SHARED LIBRARY: out/SYMBOL/libpython2.6.so
>> ASSERTION FAILURE external/elfcopy/elfcopy.c:2457:
>> [!(shdr_info[sym->st_shndx].shdr.sh_flags & SHF_ALLOC)]
>> make: *** [out/SYMBOL/libpython2.6.so] Error 1
>>
>>
>> anyone have a workaround so I can complete the benchmarking?
>>
>> -andy
>>
>
>
>
> --
>
> - Alexander
>
>
--
- Alexander