Parallella showing 215M of Ram

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Parallella showing 215M of Ram

Postby bsdpunk » Wed Sep 02, 2015 9:13 am

I'm sure this is just me misunderstanding something or something not configured right, and I know it's probably a noob question that has been answered many times because I very much doubt it's just a defective board. Anyway I tried to install something earlier and there was a not enough memory error so I decided to look at what could be eating all the RAM and suddenly:

Code: Select all
parallella@parallella:~$ uname -a
Linux parallella 3.14.12-parallella-xilinx-g40a90c3 #1 SMP PREEMPT Fri Jan 23 22:01:51 CET 2015 armv7l armv7l armv7l GNU/Linux
parallella@parallella:~$ sudo free -m
             total       used       free     shared    buffers     cached
Mem:           215         31        183          0          3          6
-/+ buffers/cache:         21        194
Swap:            0          0          0


So if there is a link that explains my mis-understanding, or if this is just me being a linux idiot clear that up.....or if it's defective hardware, perhaps you could just send me a bullet and I can shoot it, or me depending on my feelings that day.
Last edited by bsdpunk on Wed Sep 02, 2015 4:27 pm, edited 1 time in total.
bsdpunk
 
Posts: 3
Joined: Wed Sep 02, 2015 9:07 am

Re: Parall, because I ella showing 215M of Ram

Postby sebraa » Wed Sep 02, 2015 1:46 pm

Please check the output of "dmesg".
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Parall, because I ella showing 215M of Ram

Postby bsdpunk » Wed Sep 02, 2015 4:27 pm

Code: Select all
parallella@parallella:~$ sudo dmesg
Booting Linux on physical CPU 0x0
Linux version 3.14.12-parallella-xilinx-g40a90c3 (esim@adapteva-dev) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #1 SMP PREEMPT Fri Jan 23 22:01:51 CET 2015
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Parallella Gen1
bootconsole [earlycon0] enabled
cma: CMA: reserved 128 MiB at 05800000
Memory policy: Data cache writealloc
On node 0 totalpages: 57344
free_area_init_node: node 0, pgdat c066d940, node_mem_map cddf8000
  Normal zone: 448 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 57344 pages, LIFO batch:15
PERCPU: Embedded 8 pages/cpu @cdde3000 s9024 r8192 d15552 u32768
pcpu-alloc: s9024 r8192 d15552 u32768 alloc=8*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 56896
Kernel command line: root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 89136K/229376K available (4609K kernel code, 217K rwdata, 1544K rodata, 176K init, 209K bss, 140240K reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xce800000 - 0xff000000   ( 776 MB)
    lowmem  : 0xc0000000 - 0xce000000   ( 224 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc060a7f8   (6154 kB)
      .init : 0xc060b000 - 0xc0637340   ( 177 kB)
      .data : 0xc0638000 - 0xc066e5e0   ( 218 kB)
       .bss : 0xc066e5ec - 0xc06a29f4   ( 210 kB)
Preemptible hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
slcr mapped to ce802000
zynq_clock_init: clkc starts at ce802100
Zynq clock init
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns
timer #0 at ce804000, irq=43
Console: colour dummy device 80x30
console [tty0] enabled
bootconsole [earlycon0] disabled
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x45e140 - 0x45e198
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72760000, Cache size: 512 kB
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
syscon f8000000.slcr: regmap [mem 0xf8000000-0xf8000fff] registered
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.18
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Switched to clocksource ttc_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
msgmni has been set to 430
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-2364208
dma-pl330 f8003000.ps7-dma:     DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
xuartps e0001000.uart: clock name 'aper_clk' is deprecated.
xuartps e0001000.uart: clock name 'ref_clk' is deprecated.
e0001000.uart: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 3124999) is a xuartps
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to ce814000
epiphany_init() - shared memory: bus 0x8f000000, phy 0x3f000000, kvirt 0xcf000000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
zram: Created 1 device(s) ...
libphy: XEMACPS mii bus: probed
xemacps e000b000.eth: pdev->id -1, baseaddr 0xe000b000, irq 54
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
aoe: cannot create debugfs directory
aoe: AoE v85 initialised.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
zynq-dr e0002000.usb: Unable to init USB phy, missing?
usbcore: registered new interface driver usbserial
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 57
cpufreq_cpu0: failed to get cpu0 regulator: -19
cpufreq_cpu0: failed to get cpu0 clock: -2
cpufreq-cpu0: probe of cpufreq-cpu0.0 failed with error -2
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
zynq_pm_ioremap: no compatible node found for 'xlnx,zynq-ddrc-1.0'
zynq_pm_late_init: Unable to map DDRC IO memory.
zynq_pm_remap_ocm: no compatible node found for 'xlnx,zynq-ocmc-1.0'
zynq_pm_late_init: Unable to map OCM.
Registering SWP/SWPB emulation handler
regulator-dummy: disabling
ALSA device list:
  No soundcards found.
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SDXC card at address aaaa
mmcblk0: mmc0:aaaa SL64G 59.4 GiB
 mmcblk0: p1 p2
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 176K (c060b000 - c0637000)
random: init urandom read with 46 bits of entropy available
init: plymouth-upstart-bridge main process (1080) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (1089) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (1092) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
init: plymouth-upstart-bridge main process (1093) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning
systemd-udevd[1195]: starting version 204
init: avahi-cups-reload main process (1789) terminated with status 1
random: nonblocking pool is initialized
xemacps e000b000.eth: Set clk to 124999998 Hz
xemacps e000b000.eth: link up (1000/FULL)
init: failsafe main process (2091) killed by TERM signal
init: auto-serial-console main process ended, respawning
init: plymouth-upstart-bridge main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: tty1 main process (2517) killed by TERM signal
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console main process ended, respawning
init: auto-serial-console respawning too fast, stopped
bsdpunk
 
Posts: 3
Joined: Wed Sep 02, 2015 9:07 am

Re: Parallella showing 215M of Ram

Postby sebraa » Wed Sep 02, 2015 5:33 pm

You don't need to run "dmesg" or "free" with superuser rights (that means: no sudo needed).

Anyway, your machine really does not detect all of the memory:
Code: Select all
Memory: 89136K/229376K available (4609K kernel code, 217K rwdata, 1544K rodata, 176K init, 209K bss, 140240K reserved, 0K highmem)


On my Parallella, as a comparison, I get this output:
Code: Select all
Memory: 868820K/1015808K available (4609K kernel code, 217K rwdata, 1544K rodata, 176K init, 209K bss, 146988K reserved, 237568K highmem)


This shouldn't happen. To me, this looks a lot like defective hardware.
Maybe someone else can contribute here, otherwise you might want to talk to Adapteva.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Parallella showing 215M of Ram

Postby tnt » Fri Sep 04, 2015 2:07 pm

AFAIK the memory isn't probed at boot at all ... it's just hardcoded somewhere how much RAM it has, so a defective RAM chip would mostlikely just crash the board and not report less ram.
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: Parallella showing 215M of Ram

Postby bsdpunk » Sat Sep 05, 2015 4:08 pm

It's like a hardcoded firmware setting? Is there somewhere I can read about this?
bsdpunk
 
Posts: 3
Joined: Wed Sep 02, 2015 9:07 am


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 7 guests

cron