Welcome! Log In Create A New Profile

Advanced

Re: How to use BIG data in my module?

XueHJ
May 07, 2011 09:04AM
----- Original Message -----
From: "Igor Sysoev" <igor@sysoev.ru>
To: <nginx-devel@nginx.org>
Sent: Friday, May 06, 2011 2:18 PM
Subject: Re: How to use BIG data in my module?


> On Fri, May 06, 2011 at 02:14:37PM +0800, XueHJ wrote:
>>
>> ----- Original Message -----
>> From: "Igor Sysoev" <igor@sysoev.ru>
>> To: <nginx-devel@nginx.org>
>> Sent: Friday, May 06, 2011 12:44 PM
>> Subject: Re: How to use BIG data in my module?
>>
>>
>> > On Fri, May 06, 2011 at 12:38:55PM +0800, XueHJ wrote:
>> >
>> >> ----- Original Message -----
>> >> From: "Piotr Sikora" <piotr.sikora@frickle.com>
>> >> To: <nginx-devel@nginx.org>
>> >> Sent: Thursday, May 05, 2011 8:26 PM
>> >> Subject: Re: How to use BIG data in my module?
>> >>
>> >>
>> >> > Hi,
>> >> >
>> >> >> in which to load into memory a BIG data (about 800MB),
>> >> >
>> >> > 800MB isn't really "big data" [0].
>> >> >
>> >> >> the processing of each HTTP request must use the data,
>> >> For me it really is a large data, huh, huh
>> >> >
>> >> > Each request must use all or just parts of the data?
>> >> Yes, just parts of the data.
>> >> >
>> >> >> how do I store the data? What structure to use?
>> >> >
>> >> > That of course depends on the data and the processing.
>> >> > There is no general answer.
>> >> The reason why the data is loaded into memory, hoping to respond to requests faster.
>> >> But how to achieve it? Use ngx_shared_memory?Asked me a suggestion.
>> >
>> > If this is read only data, you can read at at configuration phase
>> > and they will be shared among all workers due to fork().
>> > Also, you can just mmap() the file.
>> >
>> Yes, The data is read only.
>> For the first solution, Can a rough guide the structure?
>> Before that I just wrote some simple module.
>
> void *

Thanks!
If there is a sample code to better.
>
>
> --
> Igor Sysoev
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

How to use BIG data in my module?

XueHJ 1437 May 05, 2011 07:16AM

Re: How to use BIG data in my module?

Piotr Sikora 676 May 05, 2011 08:28AM

Re: How to use BIG data in my module?

XueHJ 494 May 06, 2011 12:40AM

Re: How to use BIG data in my module?

Igor Sysoev 730 May 06, 2011 12:46AM

Re: How to use BIG data in my module?

XueHJ 530 May 06, 2011 02:16AM

Re: How to use BIG data in my module?

Igor Sysoev 592 May 06, 2011 02:20AM

Re: How to use BIG data in my module?

XueHJ 577 May 07, 2011 09:04AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready