OK, I understand.

I ran a simple program to test if mmap will cause the increasing of PSS. But
I did not find the PSS increase according to showmap: 
    addr = (char *)mmap(NULL, length, PROT_READ, MAP_SHARED, fd, 0);
    for(i=0; i<length; i++){
        c = addr[i];
    }
Which make me have a misunderstand that mmap will always not use physical
memory.

Thus, I enable mmap in my another sqlite program and find the PSS increases
along with the growing of my db file which makes me confused as 256M PSS is
too big for my system.

(Still do not understand why my simple test program does not work.)

And I guess there is no way to reduce the PSS of my sqlite program unless
pragma mmap_size=10M.



--
Sent from: http://sqlite.1065341.n5.nabble.com/
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to