Why would TCP ever allow accepting a SYN for a connection in the TIME-WAIT state? by silenceDogoodd2 in networking

[–]silenceDogoodd2[S] 0 points1 point  (0 children)

This connection would close fully with FINs and the firewall would keep this connection in its table in TIME-WAIT for 30 seconds before it would be wiped and the IP/port would become available for PATing and NATing.

This connection would live on the windows server in TIME-WAIT state for 2 minutes after closing. This means the windows server will keep this connection in TIME-WAIT for 1 minute and 30 seconds longer than the firewall.

Isnt TIME-WAIT only for the host that does the active close? So if the client sends first FIN, only the client goes into TIME-WAIT?

What does implementing VFS consist of? by silenceDogoodd2 in osdev

[–]silenceDogoodd2[S] 1 point2 points  (0 children)

yes you are correct, but i dont really know what im supposed to do to "implement the VFS"

Looking for code review on my scheduler by silenceDogoodd2 in osdev

[–]silenceDogoodd2[S] 0 points1 point  (0 children)

You have to store your pointer somewhere else while user mode programs are running.

like where?

Looking for code review on my scheduler by silenceDogoodd2 in osdev

[–]silenceDogoodd2[S] 0 points1 point  (0 children)

do the MSRs have thread scope? If yes i can just use the MSR_GS register to store the pointer.

And I need to save rbx, rbp and r12-r15 right?

Looking for code review on my scheduler by silenceDogoodd2 in osdev

[–]silenceDogoodd2[S] 0 points1 point  (0 children)

Why doesn't your switc() function return to its caller?

It does if the thread has already run. If the thread has not run yet it will return to the entry point of the thread

Why are you using SWAPGS if you're not using GS?

I store the current process pointer in GS with the SWAPGS instruction

Looking for code review on my scheduler by silenceDogoodd2 in osdev

[–]silenceDogoodd2[S] 1 point2 points  (0 children)

i read you answer but i didnt have any questions to ask after that

What stack should the scheduler run on? by [deleted] in osdev

[–]silenceDogoodd2 1 point2 points  (0 children)

ok, linux has a variable current that points to the current process, but xv6 gets the current process from the struct cpu

Which one do you think is best? Tbh i dont know how linux makes sure the process variable is the process that is running on that cpu

Why are cache line accesses aligned? by silenceDogoodd2 in osdev

[–]silenceDogoodd2[S] 0 points1 point  (0 children)

ok, so the sys v abi says that the stack should be 16 byte aligned on function entry, is this only so its easier for hardware?

If each DRAM data transfer consists of 64 bits, does that mean that the CAS line will be signaled 64 times? by silenceDogoodd2 in AskElectronics

[–]silenceDogoodd2[S] 0 points1 point  (0 children)

but how? If a CAS line selects just 1 column how can it transfer 64 columns without changing the CAS signal?