Re: [gem5-users] drampower meaning of background energy

2018-07-29 Thread Éder F. Zulian

Hi Jiwon,

when the memory is in stand-by and ...
1) all memory banks are precharged the memory draws a precharge 
background current IDD2n. This static power component is called 
precharge background power.
2) at least one bank is active, the memory consumes an active background 
current IDD3n. This static power component is the active background power.


I hope it helps.

Best Regards,
Éder


On 07/30/2018 05:18 AM, Choe, Jiwon wrote:

Hi,

I am looking into the stats from drampower, and I am confused on what 
"activation background energy" and "precharge background energy" stats 
refer to.
Are these simply leakage energy? Why is there a distinction between 
"activation" background energy and "precharge" background energy?


Thanks,
Jiwon


___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] 回复: 回复: gem5 killed when booting linux

2018-06-22 Thread Éder F. Zulian

Hi,

the first thing is to do is to analyse the memory consumption and 
understand it, for that you can try valgrind. Then you can try to figure 
out a way to reduce gem5's memory footprint.


Best Regards,


On 06/22/2018 05:18 PM, web wrote:

Hi, Éder

Thanks for your help. I finally boot my linux with setting
echo 1 > /proc/sys/vm/overcommit_memory
 on the 16G RAM/16G Swap machine, which gem5 used 16G RAM and 4G swap.

I have no idea why gem5 eat up so much memory. I configure model is 
only 512MB RAM and hda1 is 8G image installed ubuntu 16.04.4

Is it normal? How can I make gem5 use less memory?

-- 原始邮件 --
*发件人:* "Éder F. Zulian";
*发送时间:* 2018年6月21日(星期四) 晚上6:11
*收件人:* "gem5 users mailing l";
*主题:* Re: [gem5-users]回复: gem5 killed when booting linux

Hello,
you could try this (superuser privileges are required):

grep -i 'killed process' /var/log/messages

Check if gem5 was killed by the OOM-killer.

As a quick workaround or just for testing and gathering more 
information you could try this:


echo 1 > /proc/sys/vm/overcommit_memory

Documentation here:

https://www.kernel.org/doc/Documentation/sysctl/vm.txt

Best Regards,


On 06/21/2018 08:47 AM, web wrote:

Hello, Jason

It is not likely running out of menory, since I try my boot on both 
8G machine with 8G swap, and 16G machine with 2G swap. Both failed. 
Anything else I can do to debug this issue?


Thanks.
-- 原始邮件 --
*发件人:* "Jason Lowe-Power";
*发送时间:* 2018年6月21日(星期四) 凌晨0:15
*收件人:* "gem5 users mailing l";
*主题:* Re: [gem5-users] gem5 killed when booting linux
Hello,

It looks like your host OS killed the gem5 process

"Program terminated with signal SIGKILL, Killed.
The program no longer exists."

Could you have run out of memory on the host?

Jason

On Tue, Jun 19, 2018 at 7:54 PM web <mailto:w...@jimmystone.cn>> wrote:


Hi, All

I am trying to boot my ubuntu with gem5 under instruction of this
page. http://www.lowepower.com/jason/setting-up-gem5-full-system.html
However, gem5 is killed with unknow reason and the log is below,
anyone could help?

= gem5 log =
Starting program:
/home/jmst/wrk/myGitHub/gem5-bench/gem5/build/X86/gem5.opt
configs/run.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled May 17 2018 21:48:59
gem5 started Jun 19 2018 21:03:00
gem5 executing on x1c, pid 31549
command line:
/home/jmst/wrk/myGitHub/gem5-bench/gem5/build/X86/gem5.opt
configs/run.py

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the
address range assigned (2048 Mbytes)
info: kernel located at: linux/vmlinux
system.pc.com_1.device: Listening for connections on port 3456
      0: rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
0: system.remote_gdb: listening for remote gdb on port 7000
warn: Reading current count from inactive timer.
Running the simulation
info: Entering event queue @ 0. Starting simulation...
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: instruction 'fninit' unimplemented
warn: Don't know what interrupt to clear for console.
warn: instruction 'sgdt_Ms' unimplemented
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: Tried to clear PCI interrupt 14
warn: Write to unknown i8042 (keyboard controller) command port.
hack: Assuming logical destinations are 1 << id.
warn: instruction 'fwait' unimplemented
1836401387040: system.pc.com_1.device: attach terminal 0
warn: instruction 'prefetch_t1' unimplemented
warn: instruction 'prefetch_t2' unimplemented
warn: instruction 'prefetch_nta' unimplemented

Program terminated with signal SIGKILL, Killed.
The program no longer exists.

== term log ==
Linux version 4.14.0 (jmst@x1c) (gcc version 5.4.0 20160609
(Ubuntu 5.4.0-6ubuntu1~16.04.9)) #8 SMP Thu Jun 14 21:25:35 CST 2018
Command line: earlyprintk=ttyS0 console=ttyS0 lpj=723
root=/dev/hda1
CPU: vendor_id 'M5 Simulator' unknown, using generic init.
CPU: Your system may be unstable.
x86/fpu: x87 FPU will use FXSAVE
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x-0x000

Re: [gem5-users] 回复: gem5 killed when booting linux

2018-06-21 Thread Éder F. Zulian

Hello,
you could try this (superuser privileges are required):

grep -i 'killed process' /var/log/messages

Check if gem5 was killed by the OOM-killer.

As a quick workaround or just for testing and gathering more information 
you could try this:


echo 1 > /proc/sys/vm/overcommit_memory

Documentation here:

https://www.kernel.org/doc/Documentation/sysctl/vm.txt

Best Regards,


On 06/21/2018 08:47 AM, web wrote:

Hello, Jason

It is not likely running out of menory, since I try my boot on both 8G 
machine with 8G swap, and 16G machine with 2G swap. Both failed. 
Anything else I can do to debug this issue?


Thanks.
--?0?2?0?2--
*??:*?0?2"Jason Lowe-Power";
*:*?0?22018??6??21??(??) 0:15
*??:*?0?2"gem5 users mailing l";
*:*?0?2Re: [gem5-users] gem5 killed when booting linux
Hello,

It looks like your host OS killed the gem5 process

"Program terminated with signal SIGKILL, Killed.
The program no longer exists."

Could you have run out of memory on the host?

Jason

On Tue, Jun 19, 2018 at 7:54 PM web > wrote:


Hi, All

I am trying to boot my ubuntu with gem5 under instruction of this
page. http://www.lowepower.com/jason/setting-up-gem5-full-system.html
However, gem5 is killed with unknow reason and the log is below,
anyone could help?

= gem5 log =
Starting program:
/home/jmst/wrk/myGitHub/gem5-bench/gem5/build/X86/gem5.opt
configs/run.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled May 17 2018 21:48:59
gem5 started Jun 19 2018 21:03:00
gem5 executing on x1c, pid 31549
command line:
/home/jmst/wrk/myGitHub/gem5-bench/gem5/build/X86/gem5.opt
configs/run.py

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the
address range assigned (2048 Mbytes)
info: kernel located at: linux/vmlinux
system.pc.com_1.device: Listening for connections on port 3456
?0?2 ?0?2 ?0?2 0: rtc: Real-time clock set to Sun Jan?0?2 1 00:00:00 2012
0: system.remote_gdb: listening for remote gdb on port 7000
warn: Reading current count from inactive timer.
Running the simulation
info: Entering event queue @ 0.?0?2 Starting simulation...
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: instruction 'fninit' unimplemented
warn: Don't know what interrupt to clear for console.
warn: instruction 'sgdt_Ms' unimplemented
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: x86 cpuid family 0x: unimplemented function 6
warn: Tried to clear PCI interrupt 14
warn: Write to unknown i8042 (keyboard controller) command port.
hack: Assuming logical destinations are 1 << id.
warn: instruction 'fwait' unimplemented
1836401387040: system.pc.com_1.device: attach terminal 0
warn: instruction 'prefetch_t1' unimplemented
warn: instruction 'prefetch_t2' unimplemented
warn: instruction 'prefetch_nta' unimplemented

Program terminated with signal SIGKILL, Killed.
The program no longer exists.

== term log ==
Linux version 4.14.0 (jmst@x1c) (gcc version 5.4.0 20160609
(Ubuntu 5.4.0-6ubuntu1~16.04.9)) #8 SMP Thu Jun 14 21:25:35 CST 2018
Command line: earlyprintk=ttyS0 console=ttyS0 lpj=723
root=/dev/hda1
CPU: vendor_id 'M5 Simulator' unknown, using generic init.
CPU: Your system may be unstable.
x86/fpu: x87 FPU will use FXSAVE
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x-0x0009fbff] usable
BIOS-e820: [mem 0x0009fc00-0x000f] reserved
BIOS-e820: [mem 0x0010-0x7fff] usable
BIOS-e820: [mem 0x8000-0xbfff] reserved
BIOS-e820: [mem 0x-0x] reserved
bootconsole [earlyser0] enabled
NX (Execute Disable) protection: active
SMBIOS 2.5 present.
DMI:?0?2 , BIOS?0?2 06/08/2008
random: fast init done
tsc: Fast TSC calibration using PIT
AGP: No AGP bridge found
e820: last_pfn = 0x8 max_arch_pfn = 0x4
MTRR: Disabled
x86/PAT: MTRRs disabled, skipping PAT initialization too.
CPU MTRRs all blank - virtualized system.
x86/PAT: Configuration [0-7]: WB?0?2 WT?0?2 UC- UC WB?0?2 WT?0?2 UC- UC
found SMP MP-table at [mem 0x000f0050-0x000f005f] mapped at
[ff200050]
ACPI: Early table checksum verification disabled