gem5-users@gem5.org

The gem5 Users mailing list

View all threads

importing packages like numpy

SN
saras nanda
Tue, Jan 2, 2024 2:28 PM

Hi Everyone ,

I am doing a full system simulation on ARM using fs_bigLITTLE.py and
fs_power.py , I am trying to import numpy library in my python script but
it takes 3-4 days and is still running but the library is not imported ,
how can I speedup this , once I import I can checkpoint but somehow its
very slow and takes a really long time.please provide me some suggestions
on this.

Thank you in advance

Regards
Srinija

Hi Everyone , I am doing a full system simulation on ARM using fs_bigLITTLE.py and fs_power.py , I am trying to import numpy library in my python script but it takes 3-4 days and is still running but the library is not imported , how can I speedup this , once I import I can checkpoint but somehow its very slow and takes a really long time.please provide me some suggestions on this. Thank you in advance Regards Srinija
EM
Eliot Moss
Tue, Jan 2, 2024 2:35 PM

On 1/2/2024 9:28 AM, saras nanda via gem5-users wrote:

Hi Everyone ,

I am doing a full system simulation on ARM using fs_bigLITTLE.py and fs_power.py , I am trying to import numpy library
in my python script but it takes 3-4 days and is still running but the library is not imported , how can I speedup this
, once I import I can checkpoint but somehow its very slow and takes a really long time.please provide me some
suggestions on this.

You can run to checkpoint using a simple and fast cpu model,
such as the atomic simple cpu.  Then you can run after checkpoint
with a more complex cpu model.  Of course, the system may already
be doing that for you.

Another possible issue is whether you're firing up a gazillion
server processes in the OS.  Trimming down the boot sequence
helped me save a lot.

HTH

Eliot Moss

On 1/2/2024 9:28 AM, saras nanda via gem5-users wrote: > Hi Everyone , > > I am doing a full system simulation on ARM using fs_bigLITTLE.py and fs_power.py , I am trying to import numpy library > in my python script but it takes 3-4 days and is still running but the library is not imported , how can I speedup this > , once I import I can checkpoint but somehow its very slow and takes a really long time.please provide me some > suggestions on this. You can run to checkpoint using a simple and fast cpu model, such as the atomic simple cpu. Then you can run after checkpoint with a more complex cpu model. Of course, the system may already be doing that for you. Another possible issue is whether you're firing up a gazillion server processes in the OS. Trimming down the boot sequence helped me save a lot. HTH Eliot Moss
SN
saras nanda
Tue, Jan 2, 2024 3:10 PM

I am using atomic cpu model ,chekcpointed the system after the boot , I am
also trying to import this library , using atomic CPU model again so that I
can checkpoint it once its loaded but it does not even after this , its
been running for 3-4 days now but has been stuck at this import line

I also tried this method of kernel-init
./build/ARM/gem5.opt configs/example/arm/fs_bigLITTLE.py
--kernel=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/binaries/vmlinux.arm64
--disk=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/disks/arm64-ubuntu-server.img
--caches --cpu-type=atomic --kernel-init=/bin/bash

To speed up the boot up

And it is successful however the import numpy statement takes forever to
run

Regards
Saras

On Tue, Jan 2, 2024 at 9:35 AM Eliot Moss moss@cs.umass.edu wrote:

On 1/2/2024 9:28 AM, saras nanda via gem5-users wrote:

Hi Everyone ,

I am doing a full system simulation on ARM using fs_bigLITTLE.py and

fs_power.py , I am trying to import numpy library

in my python script but it takes 3-4 days and is still running but the

library is not imported , how can I speedup this

, once I import I can checkpoint but somehow its very slow and takes a

really long time.please provide me some

suggestions on this.

You can run to checkpoint using a simple and fast cpu model,
such as the atomic simple cpu.  Then you can run after checkpoint
with a more complex cpu model.  Of course, the system may already
be doing that for you.

Another possible issue is whether you're firing up a gazillion
server processes in the OS.  Trimming down the boot sequence
helped me save a lot.

HTH

Eliot Moss

I am using atomic cpu model ,chekcpointed the system after the boot , I am also trying to import this library , using atomic CPU model again so that I can checkpoint it once its loaded but it does not even after this , its been running for 3-4 days now but has been stuck at this import line I also tried this method of kernel-init ./build/ARM/gem5.opt configs/example/arm/fs_bigLITTLE.py --kernel=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/binaries/vmlinux.arm64 --disk=/home/saras/gem5-resources/src/arm-ubuntu/gem5/full_system_images/disks/arm64-ubuntu-server.img --caches --cpu-type=atomic --kernel-init=/bin/bash To speed up the boot up And it is successful however the import numpy statement takes forever to run Regards Saras On Tue, Jan 2, 2024 at 9:35 AM Eliot Moss <moss@cs.umass.edu> wrote: > On 1/2/2024 9:28 AM, saras nanda via gem5-users wrote: > > Hi Everyone , > > > > I am doing a full system simulation on ARM using fs_bigLITTLE.py and > fs_power.py , I am trying to import numpy library > > in my python script but it takes 3-4 days and is still running but the > library is not imported , how can I speedup this > > , once I import I can checkpoint but somehow its very slow and takes a > really long time.please provide me some > > suggestions on this. > > You can run to checkpoint using a simple and fast cpu model, > such as the atomic simple cpu. Then you can run after checkpoint > with a more complex cpu model. Of course, the system may already > be doing that for you. > > Another possible issue is whether you're firing up a gazillion > server processes in the OS. Trimming down the boot sequence > helped me save a lot. > > HTH > > Eliot Moss > >