PDA

Bekijk de volledige versie : need help about memory



Boko
13-04-2009, 08:15
I think something is not right when I tipe "free" in terminal i get

total used free shared buffers cached
Mem: 13956 13692 264 0 708 3976
-/+ buffers/cache: 9008 4948
Swap: 1052216 10208 1042008

I'm using oleg's 1.9.2.7-10 on wl500gp and installed AsusHead Start II, I think I had more memory is there a chance one of my chip's to be dead or it might be some thing else

Thank's sorry for my English it's not my native

gouryella
13-04-2009, 08:19
I think something is not right when I tipe "free" in terminal i get

total used free shared buffers cached
Mem: 13956 13692 264 0 708 3976
-/+ buffers/cache: 9008 4948
Swap: 1052216 10208 1042008

I'm using oleg's 1.9.2.7-10 on wl500gp and installed AsusHead Start II, I think I had more memory is there a chance one of my chip's to be dead or it might be some thing else

Thank's sorry for my English it's not my native

Extend RAM to 32MB
After flashing Oleg's FW on your box, it has by default 16MB RAM, but on the PCB are 32MB. By changing some NVRAM variables you can make the hole 32MB RAM accessable.

Attention! This just works with Premium boxes! Use this section on your own risk! It can damage your box! You shouldn't change the nvram variables with a Premium V2 (V1 too)!!!
Code:


nvram set sdram_init=0x0009
nvram set sdram_ncdl=0
nvram commit
reboot

[marcnesium]

Boko
13-04-2009, 08:38
No I tried that and the problem persists also the speed I get through FTP ans samba is 1.1MB~1.5MB I'm sure it was faster :(

gouryella
13-04-2009, 09:01
No I tried that and the problem persists also the speed I get through FTP ans samba is 1.1MB~1.5MB I'm sure it was faster :(
speed depend on connected device, but max is about 3.5MB/s for hardware limitations of the asus.

try post your:

cat /proc/meminfo

it looks like:


total: used: free: shared: buffers: cached:
Mem: 30900224 30347264 552960 0 1642496 16007168
Swap: 263200768 1847296 261353472
MemTotal: 30176 kB
MemFree: 540 kB
MemShared: 0 kB
Buffers: 1604 kB
Cached: 15216 kB
SwapCached: 416 kB
Active: 1784 kB
Inactive: 15476 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 30176 kB
LowFree: 540 kB
SwapTotal: 257032 kB
SwapFree: 255228 kB

al37919
13-04-2009, 09:09
After flashing Oleg's FW on your box, it has by default 16MB RAM
This is generally misleading statement. So, I advice to the other people who read this to avoid trying such method unless they really have 16Mb RAM on Premium v1. I see that this recommendation is removed from Russian howto as dangerous.

As far as I remember that problem existed in very early samples of premium v1, and was solved very long ago.

So, my question is how old is the device? was it seeing all 32Mb before?

Boko
13-04-2009, 10:23
speed depend on connected device, but max is about 3.5MB/s for hardware limitations of the asus.

try post your:

cat /proc/meminfo

it looks like:


total: used: free: shared: buffers: cached:
Mem: 30900224 30347264 552960 0 1642496 16007168
Swap: 263200768 1847296 261353472
MemTotal: 30176 kB
MemFree: 540 kB
MemShared: 0 kB
Buffers: 1604 kB
Cached: 15216 kB
SwapCached: 416 kB
Active: 1784 kB
Inactive: 15476 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 30176 kB
LowFree: 540 kB
SwapTotal: 257032 kB
SwapFree: 255228 kB


Here's mine:
total: used: free: shared: buffers: cached:
Mem: 14290944 13926400 364544 0 561152 6447104
Swap: 1077469184 12394496 1065074688
MemTotal: 13956 kB
MemFree: 356 kB
MemShared: 0 kB
Buffers: 548 kB
Cached: 3088 kB
SwapCached: 3208 kB
Active: 4124 kB
Inactive: 3296 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 13956 kB
LowFree: 356 kB
SwapTotal: 1052216 kB
SwapFree: 1040112 kB
[admin@X-Dream root]$

Boko
13-04-2009, 10:31
and yes I was using earlier versions of oleg's firmware and it was addressing 32MB of RAM and also the speed trough samba of ftp was faster and I'm using the same laptop earlier I was getting around 3MB/s down. from the box now I only get around 1.5MB/s max.

gouryella
13-04-2009, 10:45
What about syslog, any problem in, my looks like:

Jan 1 01:00:03 syslogd started: BusyBox v1.13.3
Jan 1 01:00:03 kernel: klogd started: BusyBox v1.13.3 (2009-04-11 11:11:03 MSD)
Jan 1 01:00:03 kernel: CPU revision is: 00029006
Jan 1 01:00:03 kernel: Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Jan 1 01:00:03 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan 1 01:00:03 kernel: Linux version 2.4.37 (root@localhost) (gcc version 3.4.6 (OpenWrt-2.0)) #2 2009-04-11 11:23:58 MSD
Jan 1 01:00:03 kernel: Setting the PFC to its default value
Jan 1 01:00:03 kernel: Determined physical RAM map:
Jan 1 01:00:03 kernel: memory: 02000000 @ 00000000 (usable)
Jan 1 01:00:03 kernel: On node 0 totalpages: 8192
Jan 1 01:00:03 kernel: zone(0): 8192 pages.
Jan 1 01:00:03 kernel: zone(1): 0 pages.
Jan 1 01:00:03 kernel: zone(2): 0 pages.
Jan 1 01:00:03 kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,ext3 noinitrd init=/linuxrc console=ttyS0,115200
Jan 1 01:00:03 kernel: CPU: BCM4704 rev 9 pkg 0 at 264 MHz
Jan 1 01:00:03 kernel: Using 132.000 MHz high precision timer.
Jan 1 01:00:03 kernel: Calibrating delay loop... 263.78 BogoMIPS
Jan 1 01:00:03 kernel: Memory: 30088k/32768k available (1739k kernel code, 2680k reserved, 236k data, 88k init, 0k highmem)

Boko
13-04-2009, 11:36
What about syslog, any problem in, my looks like:

Jan 1 01:00:03 syslogd started: BusyBox v1.13.3
Jan 1 01:00:03 kernel: klogd started: BusyBox v1.13.3 (2009-04-11 11:11:03 MSD)
Jan 1 01:00:03 kernel: CPU revision is: 00029006
Jan 1 01:00:03 kernel: Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Jan 1 01:00:03 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan 1 01:00:03 kernel: Linux version 2.4.37 (root@localhost) (gcc version 3.4.6 (OpenWrt-2.0)) #2 2009-04-11 11:23:58 MSD
Jan 1 01:00:03 kernel: Setting the PFC to its default value
Jan 1 01:00:03 kernel: Determined physical RAM map:
Jan 1 01:00:03 kernel: memory: 02000000 @ 00000000 (usable)
Jan 1 01:00:03 kernel: On node 0 totalpages: 8192
Jan 1 01:00:03 kernel: zone(0): 8192 pages.
Jan 1 01:00:03 kernel: zone(1): 0 pages.
Jan 1 01:00:03 kernel: zone(2): 0 pages.
Jan 1 01:00:03 kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,ext3 noinitrd init=/linuxrc console=ttyS0,115200
Jan 1 01:00:03 kernel: CPU: BCM4704 rev 9 pkg 0 at 264 MHz
Jan 1 01:00:03 kernel: Using 132.000 MHz high precision timer.
Jan 1 01:00:03 kernel: Calibrating delay loop... 263.78 BogoMIPS
Jan 1 01:00:03 kernel: Memory: 30088k/32768k available (1739k kernel code, 2680k reserved, 236k data, 88k init, 0k highmem)



Jan 1 01:00:03 syslogd started: BusyBox v1.1.3
Jan 1 01:00:03 kernel: klogd started: BusyBox v1.1.3 (2008.03.17-18:24+0000)
Jan 1 01:00:03 kernel: CPU revision is: 00029006
Jan 1 01:00:03 kernel: Primary instruction cache 16kb, linesize 16 bytes (2 ways)
Jan 1 01:00:03 kernel: Primary data cache 16kb, linesize 16 bytes (2 ways)
Jan 1 01:00:03 kernel: Linux version 2.4.20 (root@localhost) (gcc version 3.2.3 with Broadcom modifications) #18 Sun Mar 30 13:13:29 MSD 2008
Jan 1 01:00:03 kernel: Setting the PFC to its default value
Jan 1 01:00:03 kernel: Determined physical RAM map:
Jan 1 01:00:03 kernel: memory: 01000000 @ 00000000 (usable)
Jan 1 01:00:03 kernel: On node 0 totalpages: 4096
Jan 1 01:00:03 kernel: zone(0): 4096 pages.
Jan 1 01:00:03 kernel: zone(1): 0 pages.
Jan 1 01:00:03 kernel: zone(2): 0 pages.
Jan 1 01:00:03 kernel: Kernel command line: root=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,115200
Jan 1 01:00:03 kernel: CPU: BCM4704 rev 9 pkg 0 at 264 MHz
Jan 1 01:00:03 kernel: Calibrating delay loop... 263.78 BogoMIPS
Jan 1 01:00:03 kernel: Memory: 13884k/16384k available (1862k kernel code, 2500k reserved, 136k data, 72k init, 0k highmem)
Jan 1 01:00:03 kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Jan 1 01:00:03 kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Jan 1 01:00:03 kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Jan 1 01:00:03 kernel: Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Jan 1 01:00:03 kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)

gouryella
13-04-2009, 12:08
everything fine, i have no idea (but im not a guru)
you can try:
save configs and flashfs
factory reset
disconnect from power source for 5 minute
on it and check syslog for memory 32MB
if 16 connect thru telnet and repeat (you risk dead device if some memory is bad)

nvram set sdram_init=0x0009
nvram set sdram_ncdl=0
nvram commit
reboot

what is the result of nvram?

al37919
13-04-2009, 12:39
what is the current output of

nvram show | grep sdram

Boko
13-04-2009, 20:46
what is the current output of

nvram show | grep sdram

[admin@X-Dream root]$ nvram show | grep sdram
sdram_config=0x0062
sdram_refresh=0x0000
sdram_ncdl=0x00010005
sdram_init=0x0009
size: 13140 bytes (19628 left)

Boko
13-04-2009, 20:52
I'll try re flushing the firmware but will I jam my current configuration

al37919
14-04-2009, 10:27
it seems that you have really a hardware problem. I'd suggest to try the last thing. Do:

nvram set sdram_ncdl=0
nvram commit
reboot

sdram_ncdl is related to some startup memory timings. If zeroed it will be recalculated on startup. However, I dont' think it will change much.

edit: I see it was already recommended above and probably done...