Need help in creating 8GB RAMDISK
Hello
I am creating a RAMDISK of 7GB (from 1GB to 8GB). I reserved the RAM by changing the code in arch/i386/mm/init.c ..........
But I am not able to access the RAM from 1GB to 8GB in a kernel module ........ after crossing the 4GB RAM, the system goes into standby state. But if I insert the same module 2 times means one for 1GB to 4GB and other for 4GB to 8GB. and mount them seprately both works fine ............
Can any one tell me the reason behind this ??? I think that in a single module we can't access more than 4GB RAM ...... If this is the reason then what to do ??? I need 7GB RAMDISK as a single drive ....
Thanks and Regards,
Fawad Lateef
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
Quoted 5 lines · Fawad Lateef
Hello
I am creating a RAMDISK of 7GB (from 1GB to 8GB). I reserved the RAM by changing the code in
arch/i386/mm/init.c..........
On i386 I'm not surprised this ties at 4G. It's probably too much trouble to make part of the ramdisk highmem, and part not.
Quoted 4 lines
Can any one tell me the reason behind this ??? I think that in a single module we can't access more than 4GB RAM ...... If this is the reason then what to do ??? I need 7GB RAMDISK as a single drive ....
Just use ramfs. Then you don't waste the overhead of putting a filesystem on top of the ramdisk.
Jeff
Quoted 5 lines · Fawad Lateef
I am creating a RAMDISK of 7GB (from 1GB to 8GB). I reserved the RAM by changing the code in
arch/i386/mm/init.c..........
But I am not able to access the RAM from 1GB to 8GB in a kernel module ........ after crossing the 4GB RAM,
Quoted 8 lines
the system goes into standby state. But if I insert the same module 2 times means one for 1GB to 4GB and other for 4GB to 8GB. and mount them seprately both works fine ............
Can any one tell me the reason behind this ??? I think that in a single module we can't access more than 4GB RAM ...... If this is the reason then what to do ??? I need 7GB RAMDISK as a single drive ....
The state of affairs here is too sad to describe. You are going to have to find some other way to do what you're trying to do.
-- wli
Quoted 6 lines · Fawad Lateef
Hello
I am creating a RAMDISK of 7GB (from 1GB to 8GB). I reserved the RAM by changing the code in
arch/i386/mm/init.c..........
Quoted 6 lines
But I am not able to access the RAM from 1GB to 8GB in a kernel module ........ after crossing the 4GB RAM, the system goes into standby state. But if I insert the same module 2 times means one for 1GB to 4GB and other for 4GB to 8GB. and mount them seprately both works fine ............
on a non-64bit intel architecture you can only grab 4GB of ram per process because that's how big the page table is. There are 16 4GB page tables for the 64GB ram that intel machines are capable of addressing.
Quoted 21 lines
Can any one tell me the reason behind this ??? I think that in a single module we can't access more than 4GB RAM ...... If this is the reason then what to do ??? I need 7GB RAMDISK as a single drive ....
Thanks and Regards,
Fawad Lateef
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 3 lines
-------------------------------------------------------------------------- Joel Jaeggli Unix Consulting [email protected] GPG Key Fingerprint: 5C6E 0104 BAF0 40B0 5BD3 C38B F000 35AB B67F 56B2
Quoted 13 lines · Fawad Lateef
Hello
I am creating a RAMDISK of 7GB (from 1GB to 8GB). I reserved the RAM by changing the code in
arch/i386/mm/init.c..........But I am not able to access the RAM from 1GB to 8GB in a kernel module ........ after crossing the 4GB RAM, the system goes into standby state. But if I insert the same module 2 times means one for 1GB to 4GB and other for 4GB to 8GB. and mount them seprately both works fine ............
Quoted 4 lines
Can any one tell me the reason behind this ??? I think that in a single module we can't access more than 4GB RAM ...... If this is the reason then what to do ??? I need 7GB RAMDISK as a single drive ....
What do you need this for?
Mostly it looks like you just need to use kmap, but... As other have pointed out ramfs is usually the better solution, and you don't need to code anything.
Or are you trying to use an 7GB initrd. An interesting idea but that would take a little bootloader hacking to make work.
Eric