Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

When a man steals your wife, there is no better revenge than to let him keep her. -- Sacha Guitry


aus+uk / uk.comp.sys.mac / Demand paging

SubjectAuthor
* Demand pagingTimS
`* Re: Demand pagingTheo
 `* Re: Demand pagingTimS
  `* Re: Demand pagingTheo
   `- Re: Demand pagingTimS

1
Demand paging

<l3bpiaF26rbU1@mid.individual.net>

  copy mid

https://news.novabbs.org/aus+uk/article-flat.php?id=20885&group=uk.comp.sys.mac#20885

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: tim@streater.me.uk (TimS)
Newsgroups: uk.comp.sys.mac
Subject: Demand paging
Date: 17 Feb 2024 13:10:34 GMT
Lines: 5
Message-ID: <l3bpiaF26rbU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net kR0FQHchpV01ROyxK052cwJyB2NGg0kHB6kFZtA54tLZx4k6LA
Cancel-Lock: sha1:CGEEpUPZdUAkthOSmA4zHb2NFEQ= sha256:LOqa1ThFKdI5eXUCcQWiuhAyI05gqCKNJo8iUQVo808=
X-Face: "M;\x&0=#cxDW4-*uL~{5d@+P7KmbB:]::l[1_h]^tu#H9yQ#.X4kSbDi;atp9otO=_G|Z2 t<Cay~&S1ru:A{I$SdbF$KS43iuPUwIh,8X"%3L;9=T~]BLW=IKvZ|/}D@Rml{4D#!Uc)|mu`34(e~ x[(n[\3.'{ChZ!"cF'!%M)iM0u~wQ"%,JC}JOhtI;:<EF5?fcf<^2T,{u.&U|?`X%B_eD##Y=ZdC2< Mq_b}MHzYQg8x-N,4)~`n*K*k?No"WVa3]]dntN(76o.nd1`;l}[-O<wJB{MQNv=H^6M`>CL2oMg$~ oW5:YPiBg[-rf40JdIu#K4A+M2gSW<LK5!!SEt:%K0z&:[N:7
User-Agent: Usenapp for MacOS
X-Usenapp: v1.27.2/l - Full License
 by: TimS - Sat, 17 Feb 2024 13:10 UTC

Anyone know whether macOS / Win / Lin do demand paging or not, and what they
do if not?

--
Tim

Re: Demand paging

<+Nn*ZkdDz@news.chiark.greenend.org.uk>

  copy mid

https://news.novabbs.org/aus+uk/article-flat.php?id=20888&group=uk.comp.sys.mac#20888

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!news.samoylyk.net!nntp.terraraq.uk!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+news@chiark.greenend.org.uk (Theo)
Newsgroups: uk.comp.sys.mac
Subject: Re: Demand paging
Date: 17 Feb 2024 15:03:42 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <+Nn*ZkdDz@news.chiark.greenend.org.uk>
References: <l3bpiaF26rbU1@mid.individual.net>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="31284"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Sat, 17 Feb 2024 15:03 UTC

TimS <tim@streater.me.uk> wrote:
> Anyone know whether macOS / Win / Lin do demand paging or not, and what they
> do if not?

Are you referring to demand paging specifically, compared with other
algorithms for swapping? Or disc-backed virtual memory in general?

SFAIK they all (can) use swap, but generally that's a last resort these
days. macOS uses compressed memory pages ahead of swapping to disc - ie
when it needs to swap, it compresses pages and stores the compressed output
to RAM, rather than disc. When the page is needed again it's decompressed.
Linux can also do this ('zram') if configured. It seems like Windows 8.1
also introduced it.

Theo

Re: Demand paging

<l3c48oF40oqU1@mid.individual.net>

  copy mid

https://news.novabbs.org/aus+uk/article-flat.php?id=20889&group=uk.comp.sys.mac#20889

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!news.samoylyk.net!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: tim@streater.me.uk (TimS)
Newsgroups: uk.comp.sys.mac
Subject: Re: Demand paging
Date: 17 Feb 2024 16:13:12 GMT
Lines: 15
Message-ID: <l3c48oF40oqU1@mid.individual.net>
References: <l3bpiaF26rbU1@mid.individual.net> <+Nn*ZkdDz@news.chiark.greenend.org.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net n7Ua/pGYlYWdDnuhdHg3KgROu+O85pzUco54Ufwd/5ZPTCFRmK
Cancel-Lock: sha1:7yN9WpUlCHwKbZL+zwTElHMyXcs= sha256:bSJN4uut0+rCmK1XpO5kQruBJjJOjgklfyyhS9Sm2zs=
X-Face: "M;\x&0=#cxDW4-*uL~{5d@+P7KmbB:]::l[1_h]^tu#H9yQ#.X4kSbDi;atp9otO=_G|Z2 t<Cay~&S1ru:A{I$SdbF$KS43iuPUwIh,8X"%3L;9=T~]BLW=IKvZ|/}D@Rml{4D#!Uc)|mu`34(e~ x[(n[\3.'{ChZ!"cF'!%M)iM0u~wQ"%,JC}JOhtI;:<EF5?fcf<^2T,{u.&U|?`X%B_eD##Y=ZdC2< Mq_b}MHzYQg8x-N,4)~`n*K*k?No"WVa3]]dntN(76o.nd1`;l}[-O<wJB{MQNv=H^6M`>CL2oMg$~ oW5:YPiBg[-rf40JdIu#K4A+M2gSW<LK5!!SEt:%K0z&:[N:7
User-Agent: Usenapp for MacOS
X-Usenapp: v1.27.2/l - Full License
 by: TimS - Sat, 17 Feb 2024 16:13 UTC

On 17 Feb 2024 at 15:03:42 GMT, "Theo" <theom+news@chiark.greenend.org.uk>
wrote:

> TimS <tim@streater.me.uk> wrote:
>> Anyone know whether macOS / Win / Lin do demand paging or not, and what they
>> do if not?
>
> Are you referring to demand paging specifically, compared with other
> algorithms for swapping? Or disc-backed virtual memory in general?

Yes, demand paging specifically. Such as was introduced IIRC with the Ferranti
Atlas and was certainly what VMS used in the 80s.

--
Tim

Re: Demand paging

<-Nn*7FdDz@news.chiark.greenend.org.uk>

  copy mid

https://news.novabbs.org/aus+uk/article-flat.php?id=20891&group=uk.comp.sys.mac#20891

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+news@chiark.greenend.org.uk (Theo)
Newsgroups: uk.comp.sys.mac
Subject: Re: Demand paging
Date: 17 Feb 2024 16:33:51 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <-Nn*7FdDz@news.chiark.greenend.org.uk>
References: <l3bpiaF26rbU1@mid.individual.net> <+Nn*ZkdDz@news.chiark.greenend.org.uk> <l3c48oF40oqU1@mid.individual.net>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="10544"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Sat, 17 Feb 2024 16:33 UTC

TimS <tim@streater.me.uk> wrote:
> On 17 Feb 2024 at 15:03:42 GMT, "Theo" <theom+news@chiark.greenend.org.uk>
> wrote:
>
> > TimS <tim@streater.me.uk> wrote:
> >> Anyone know whether macOS / Win / Lin do demand paging or not, and what they
> >> do if not?
> >
> > Are you referring to demand paging specifically, compared with other
> > algorithms for swapping? Or disc-backed virtual memory in general?
>
> Yes, demand paging specifically. Such as was introduced IIRC with the Ferranti
> Atlas and was certainly what VMS used in the 80s.

They can, they try not to.

Demand paging is pulling in pages when a page fault is detected,
anticipatory paging tries to pull them in ahead of time so there's no page
fault. You are likely doing both - get a page fault, pull in that page and
the next N pages. The first one is demand paged the others are anticipatory
paged. When you hit the next page it's already in memory so you've avoided
the latency cost of having to pull it in.

Operating systems use a variety of paging algorithms:
https://en.wikipedia.org/wiki/Page_replacement_algorithm

Maybe you have a fancier anticipation algorithm that does some machine
learning voodoo on your workload and figures out which pages to anticipate
so good you never demand page. It's all down to whatever algorithms your
swapper is compiled with (which is static in Windows and Mac, but on Linux
you can usually tweak this stuff).

Theo

Re: Demand paging

<l3c8c3F4o6lU1@mid.individual.net>

  copy mid

https://news.novabbs.org/aus+uk/article-flat.php?id=20893&group=uk.comp.sys.mac#20893

  copy link   Newsgroups: uk.comp.sys.mac
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: tim@streater.me.uk (TimS)
Newsgroups: uk.comp.sys.mac
Subject: Re: Demand paging
Date: 17 Feb 2024 17:23:15 GMT
Lines: 23
Message-ID: <l3c8c3F4o6lU1@mid.individual.net>
References: <l3bpiaF26rbU1@mid.individual.net> <+Nn*ZkdDz@news.chiark.greenend.org.uk> <l3c48oF40oqU1@mid.individual.net> <-Nn*7FdDz@news.chiark.greenend.org.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net XwaCWLjuYfwrrV41iPtOcAfwGH8RZQdlPlzUw1C/vGqCAn6kVM
Cancel-Lock: sha1:Adn1w/b5Ckp3xOqvWc29092cH5k= sha256:hyMnhzmFXMpuo2rmFFcrC8iOlTxfxdMaO+dKtjdHxH8=
X-Face: "M;\x&0=#cxDW4-*uL~{5d@+P7KmbB:]::l[1_h]^tu#H9yQ#.X4kSbDi;atp9otO=_G|Z2 t<Cay~&S1ru:A{I$SdbF$KS43iuPUwIh,8X"%3L;9=T~]BLW=IKvZ|/}D@Rml{4D#!Uc)|mu`34(e~ x[(n[\3.'{ChZ!"cF'!%M)iM0u~wQ"%,JC}JOhtI;:<EF5?fcf<^2T,{u.&U|?`X%B_eD##Y=ZdC2< Mq_b}MHzYQg8x-N,4)~`n*K*k?No"WVa3]]dntN(76o.nd1`;l}[-O<wJB{MQNv=H^6M`>CL2oMg$~ oW5:YPiBg[-rf40JdIu#K4A+M2gSW<LK5!!SEt:%K0z&:[N:7
User-Agent: Usenapp for MacOS
X-Usenapp: v1.27.2/l - Full License
 by: TimS - Sat, 17 Feb 2024 17:23 UTC

On 17 Feb 2024 at 16:33:51 GMT, "Theo" <theom+news@chiark.greenend.org.uk>
wrote:

> TimS <tim@streater.me.uk> wrote:
>> On 17 Feb 2024 at 15:03:42 GMT, "Theo" <theom+news@chiark.greenend.org.uk>
>> wrote:
>>
>>> TimS <tim@streater.me.uk> wrote:
>>>> Anyone know whether macOS / Win / Lin do demand paging or not, and what they
>>>> do if not?
>>>
>>> Are you referring to demand paging specifically, compared with other
>>> algorithms for swapping? Or disc-backed virtual memory in general?
>>
>> Yes, demand paging specifically. Such as was introduced IIRC with the Ferranti
>> Atlas and was certainly what VMS used in the 80s.
>
> They can, they try not to.

OK - thanks for that. Things have moved on, obvs.

--
Tim

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor