Message ID | 20210311052146.404003-1-o-takashi@sakamocchi.jp (mailing list archive) |
---|---|
Headers | show |
Series | axfer: reduce test time | expand |
Dne 11. 03. 21 v 6:21 Takashi Sakamoto napsal(a): > Hi, > > The axfer in alsa-utils has test programs for internal modules and > overall time to execute them takes much. The issue is filing in > github repository[1]. It comes from three causes: > > 1. file I/O operations are done in file system for actual storage > 2. Some cases operate much audio data frames (over 4MB, approx.) > 3. much test iteration count (so simple...) > > This patchset uses shm by memfd_create(2) for the cause 1. In addition, > the number of maximum audio data frame to test is reduced as well as the > number of samples per frame. > > I got benchmark with berow machine environment. > > * AMD Ryzen 5 2400G > * memory total 30823852 KB > * linux-image-5.8.0-44-generic on Ubuntu 20.04 amd64 > * ext4 on SATA SSD > > As a result: > |container| mapper | > | test | test | > ================== | ======= | ======= | > Current | 112 min | 5 min | > +shm | 58 min | 50 sec | > +maximum reduction | 38 min | - | > +iter reduction | 4 min | - | > > In my opinion, the issue comes from package build server in each > distribution. 5 min for test execution is not so worse time. > > Finally, test programs run on shm and commit c3f2344b7209 is reverted[1] > since it's useless now. Applied all patches except the double revert. Thank you. Jaroslav