Questions tagged [paging]

A memory-management technique where a computer stores and retrieves data from secondary storage for use in main memory. Memory is divided into equal sized pages so to not waste any memory.

2459 questions
0
votes
1 answer

How is the LRU eviction policy less efficient than the random policy in this corner case?

I am reading OS Design: Three Easy Pieces, and I stumbled upon this quote in chapter 19: Translation Lookaside Buffers. It talks about eviction policies and comparing the hit efficiency of LRU vs. a random selection eviction. Such a policy (Random…
ksalanga
  • 21
  • 6
0
votes
2 answers

wordpress paging bugs?

I am using wordpress latest version. Currently my blog is set to custom permalink /index.php/%postname%/ http://abc.com/blog/index.php (working fine) but when click on NEXT button to go to page 2, it fail. It suppose to go to…
i need help
  • 2,386
  • 10
  • 54
  • 72
0
votes
1 answer

Paging library 3. No load more data

Why Recycler load only 15 items and no more? I do all by manual page in android.com https://developer.android.com/topic/libraries/architecture/paging/v3-paged-data What I do wrong? Please help. I write this simple code to understand Paging library…
0
votes
0 answers

Is there an auto-enlarging shared memory in Linux?

I'm sharing many memory blocks between two processes in Linux, one process receives data from network, and the other uses the data in those blocks (buffers). Some buffers are small (hundreds bytes), and some buffers are very large(2G~4G bytes),…
Leon
  • 1,489
  • 1
  • 12
  • 31
0
votes
1 answer

Spanner mutation limit for delete by KeySet

Cloud spanner's mutation limit per commit 20,000. For a mutation delete using KeySet, does this count as one mutation, or does the size of the KeySet determine the number of mutations? For example: List mutations = new ArrayList<>(); …
Christine
  • 512
  • 2
  • 9
  • 21
0
votes
0 answers

Which page in main memory does the process' page 4 map to?

Got a question: A process has the following page table. Valid Bit Page 0 - 1 3 0 - 0 - 1 2 1 0 0 - 1 1 Which page in main memory does the process' page…
Jade
  • 1
  • 1
0
votes
1 answer

How to create/guarantee a unique timestamp in MongoDb collection using Spring Boot, to limit queries sorted by timestamp without paging

The application is syncing data records between devices via an online Mongo DB collection. Multiple devices can send batches of new or modified records to the server Mongo collection at any time. Devices get all record updates for them that they…
Robb Peebles
  • 221
  • 1
  • 2
  • 8
0
votes
1 answer

Data Paging in SQL Server 2005 Only Returns 1 (One) Row

Would someone please help me. I have a stored procedure (see below) for data paging in SQL Server 2005. The purpose of the stored procedure is to return a page of Products (prodid, description) for a particular Category (CatID). When I execute the…
Walter Lockhart
  • 1,293
  • 3
  • 20
  • 34
0
votes
1 answer

Get the list of pages used by a process

How do I get a list of pages used by a process given its PID ? For each page, I would like to know its starting adress (should end with with 12*0 bits since pages are 4KB ?), and if it is writable/executable. A GDB-based solution would be nice too…
Aaa Bbb
  • 627
  • 4
  • 12
0
votes
1 answer

How to set two request bodies to one RecyclerView?

I have a RecyclerView that inherits from PagingDataAdapter, inside the adapter I have two viewHolders, they are divided by viewType, the fact is that I wrote a code that combined the body of two requests into one MutableLiveData, which can then be…
0
votes
0 answers

Reading .csv in chunks, keep only the rows that have a numbers matching to a reference dataframe, then write those chunks into another csv

I am pretty sure I cobbled together the wrong parts of other people's code. When I try the code below my file size increases when the original idea was to add only the rows with matching bbl numbers from two dataframes. #reference dataframe that…
0
votes
0 answers

How can I use over a 100 values in a WHERE clause in Postgres?

I have a list of of 954 values that I tried to include in a where clause using the IN function, but I get the following error. ERROR: cannot pass more than 100 arguments to a function LINE 9: and cm.course_id…
Andrew Stevenson
  • 578
  • 1
  • 9
  • 23
0
votes
1 answer

Adding Paging and Sorting functionality using Ajax and MvcContrib Grid

I am using MvcContrib Grid control in my MVC application. Following the example in the Pro*ASP.NET MVC book I have the following class and paging helper created public class PagingInfo { public int TotalItems { get; set; } public int…
SimpleUser
  • 1,341
  • 2
  • 16
  • 36
0
votes
1 answer

SQL Sort/Paging question Question

Lets say I have a pivoted sorted dataset like this ID Col1 Col2 1 a 11 2 b 22 3 c 33 4 d 44 5 e 55 When I make a paging call by returning two records at a time I would get the first two…
John Soer
  • 551
  • 1
  • 7
  • 20
0
votes
1 answer

Hardware support for valid / invalid bit in page table

While reading about demand paging, I can see it mentioned in several sources (e.g. http://www.expertsmind.com/questions/name-the-hardware-to-support-demand-paging-30176232.aspx) that we need hardware support for valid / invalid bit for each entry in…