Re: [mpir-devel] Automatic disk Read/Write when numbers exceed available RAM
On Tue, 26 May 2020 at 04:35, 'Bill Hart' via mpir-devel < mpir-devel@googlegroups.com> wrote: > No, unfortunately there is no automatic facility to do this other than > the swapping mechanism of your OS. > But in the OP's code!. One can allocate the mpz_t directly into virtual memory using your os'es facilities (VirtualAlloc/mmap) or use Boost.Interprocess to achieve the same in a cross-platform way. Wrapping an mpz_t (putting it in vm) is the way I think). degski -- @systemdeg "We value your privacy, click here!" Sod off! - degski "Anyone who believes that exponential growth can go on forever in a finite world is either a madman or an economist" - Kenneth E. Boulding "Growth for the sake of growth is the ideology of the cancer cell" - Edward P. Abbey -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/CAN3nP7tTnWikcdBhMzJfaf4SBsdUBB8F%2BSJFLgsT8BeX1YkamA%40mail.gmail.com.
Re: [mpir-devel] Automatic disk Read/Write when numbers exceed available RAM
No, unfortunately there is no automatic facility to do this other than the swapping mechanism of your OS. On Tue, 26 May 2020 at 06:37, Gaj Satha wrote: > > The problem I have is that numbers have become so big that I can’t store them > in my RAM. Is there a way I can smartly write portions of my number to the > hard disk and load them when needed? > > Essentially what I want is that when the RAM is full, just write to the disk > and load is automatically without me writing the logic of disk read/write. > > -- > You received this message because you are subscribed to the Google Groups > "mpir-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mpir-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mpir-devel/1e4ba4af-3dc8-46f7-ac60-3bd9410bc89b%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/CAB0xFnsPTBXyJ7TNa9dm_-MNFCO2FLsEzo2ygVpR2MKAsz%3DUmg%40mail.gmail.com.
[mpir-devel] Automatic disk Read/Write when numbers exceed available RAM
The problem I have is that numbers have become so big that I can’t store them in my RAM. Is there a way I can smartly write portions of my number to the hard disk and load them when needed? Essentially what I want is that when the RAM is full, just write to the disk and load is automatically without me writing the logic of disk read/write. -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/1e4ba4af-3dc8-46f7-ac60-3bd9410bc89b%40googlegroups.com.