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.
Questions tagged [paging]
2459 questions
0
votes
1 answer
How long is a virtual page number in a 48-bits system with 4KB page size
In a 32-bits system with 4KB page size, the page number PN from its address VA is 20 bits long obtained with PN = VA / 4KB.
But if we have a 48-bits system, is still the page number 20 bits long?
Concretely, I have a virtual address of the form…

S Bitchebe
- 27
- 3
0
votes
1 answer
Improve table paging logic
I have a GridView filled with the most recent 100 documents records (Title, Description, Author, CreationDate).
I use DataTable jQuery plugin to provide further features like: columns drag&drop, searching, paging.
Since the overall number of…

Francesco
- 9,947
- 7
- 67
- 110
0
votes
0 answers
How do I register nonconsecutive pages in i386 paging directory?
I'm trying to write a simple OS with context switching, including mapping a separate virtual address space for each process (eg. each process gets its own page directory). If say a process's data segment is at memory address 0x700000, its code…

Devin
- 17
- 3
0
votes
1 answer
What happens if my OS doesn't 0 out a page before I allocate it?
Just getting into OS and was confused why exactly we have to 0 out our page all the time before we're able to allocate it to the requestor?

dasani7
- 15
- 4
0
votes
0 answers
Why multiple entries of libc and ld present in virtual address space
Following is one of the virtual address space of one process
004f3000-004f6000 r--p 000ad000 b3:02 24 /bin/bash.bash
004f6000-004fb000 rw-p 000b0000 b3:02 24 /bin/bash.bash
004fb000-00504000 rw-p 00000000 00:00 0
019e0000-025fe000…

md.jamal
- 4,067
- 8
- 45
- 108
0
votes
0 answers
Gridview Record and Rowcount
I have the following code to achieve a rowcount for my gridview
protected void OnPageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}
protected void…

badgerless
- 45
- 8
0
votes
1 answer
React marking which page i'm on
I'd like for my app to indicate which page I'm currently on. Page numbers get calculated based on the length of an array, and when I move between them, the current page would have a different background. The current page is saved inside the state as…
user14964079
0
votes
0 answers
If using room and paging3 together, a manual refresh will cause the list to jump to the 3*loadsize position
Version used:
room: 2.3.0,
paging3:3.0.0
Devices/Android versions reproduced on:
min_sdk = 23
compile_sdk = 30
target_sdk = 24
build_tools = "30.0.3"
A manual refresh will cause the list to jump to 3*loadSize (default)
This is an example of a…

pnkj
- 406
- 5
- 17
0
votes
1 answer
Why are my page tables not mapping the right physical addresses?
I am writing a small x86-64 kernel booted with UEFI. I think there is something I overlook in the code and I can't figure out what it is. I am trying to page the xHCI BAR in my higher half kernel. I've got this small code snippet which is supposed…

user123
- 2,510
- 2
- 6
- 20
0
votes
1 answer
Why does QEMU return the wrong addresses when filling the higher half of the PML4?
I'm writing a small x86-64 OS I boot with UEFI. I am trying to make the kernel a higher half kernel by shifting the executable of the kernel to 0x800000000000. This address should be halfway through the PML4. Basically, I should fill entry 256 of…

user123
- 2,510
- 2
- 6
- 20
0
votes
2 answers
Why is my code causing a triple fault on x86-64?
I've got a small x86-64 kernel I boot with UEFI. At first, I was loading the kernel directly at 0x400000 but then I wanted to have a higher half kernel because I feel it is the proper way to do things. I decided to adopt a strategy where I separate…

user123
- 2,510
- 2
- 6
- 20
0
votes
1 answer
Virtual memory location on hard-disk
I was reading about paging and swap-space and I'm a little confused about how much space (and where) on the hard-disk is used to page out / swap-out frames. Let's think of the following scenario :
We have a single process which progressively uses…

not_that_guy123
- 123
- 4
0
votes
0 answers
SwiftUI 1.0 Vertical Paging without SwiftUI 2.0
I've made vertical paging but the TabViewStyle function supports the minimum iOS 14.0. However, I want my application to work in the minimum iOS 13.0 version. How can I disable indexDisplayMode?
Gif:
Code:
struct PagingQuestionView: View {
let…

Ufuk Köşker
- 1,288
- 8
- 29
0
votes
1 answer
Does every Process have its own Page directory?
(In 2-Level Paging)
If so: Does every process have multiple Page Tables?
If not: How is it ensured that a process doesn't point to a Page Directory Entry from a different process?

Gesichtsfelsen
- 59
- 1
- 1
- 7
0
votes
1 answer
Inconsistent results when sorting documents by _doc
I want to fetch elasticsearch hits using the sort+search_after paging mechanism.
The elasticsearch documentation states:
_doc has no real use-case besides being the most efficient sort order. So if you don’t care about the order in which documents…

krezno
- 392
- 1
- 12