PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   Windows 10 Help Forum (http://www.pcbanter.net/forumdisplay.php?f=52)
-   -   Swap files number (http://www.pcbanter.net/showthread.php?t=1103067)

Tigerfr February 17th 18 07:13 AM

Swap files number
 
Hello,
I have 2 partitions on one physical hard disk, is it necessary to have
2 swap files?
Thanks.

Auric__ February 17th 18 07:33 AM

Swap files number
 
Tigerfr wrote:

I have 2 partitions on one physical hard disk, is it necessary to have
2 swap files?


I wouldn't have more than 1 swapfile per physical drive. On a normal (non-
SSD) hard drive, multiple swapfiles would probably have a negative impact on
performance.

--
- Who is John Galt?
- Who cares?

GS February 17th 18 11:49 AM

Swap files number
 
Adding to Auric's reply...

If you need a larger SwapFile I think you can specify its size (reserved
space). Not sure where you'd do this though because RAM has been so cheap for
so long I'm content to leave it at the default setting.

Note that extensive use of this file slows performance considerably. Better you
increase RAM instead.(IMHO)

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

Tigerfr February 17th 18 12:52 PM

Swap files number
 
GS a émis l'idée suivante :
Adding to Auric's reply...

If you need a larger SwapFile I think you can specify its size (reserved
space). Not sure where you'd do this though because RAM has been so cheap for
so long I'm content to leave it at the default setting.

Note that extensive use of this file slows performance considerably. Better
you increase RAM instead.(IMHO)


In fact the initial problem is not the swap file but without reason
win10 restart.
I tried to find so many work around, imposing the swap file size is the
almost last one.
Someone said also to change the power supply.

Paul[_32_] February 17th 18 02:57 PM

Swap files number
 
Tigerfr wrote:
GS a émis l'idée suivante :
Adding to Auric's reply...

If you need a larger SwapFile I think you can specify its size
(reserved space). Not sure where you'd do this though because RAM has
been so cheap for so long I'm content to leave it at the default setting.

Note that extensive use of this file slows performance considerably.
Better you increase RAM instead.(IMHO)


In fact the initial problem is not the swap file but without reason
win10 restart.
I tried to find so many work around, imposing the swap file size is the
almost last one.
Someone said also to change the power supply.


Check for details in Reliability Monitor. Right-click Start, go to the Run
box and enter "control" or "control.exe" to find the Control Panels. In
the search box in Control Panels, enter "reliability" to find mention
of the Reliability Monitor. Then look in the Windows Failures row.

https://s14.postimg.org/lbm7wocoh/re...ty_monitor.gif

*******

Windows 10 has a memory test program built in. It
runs on a reboot, once it has been enabled.

https://www.howtogeek.com/260813/how...-for-problems/

Verify that your RAM is working well and without error.

*******

The files in the root of C: include:

swapfile.sys 256MB (used for kernel hibernation between boots,
and is used for the "Fast Start" feature)

hiberfil.sys xxx hibernates the entire session to disk

pagefile.sys xxx used for paging out non-resident chunks
of RAM. On Windows 10, this is hardly used.
It takes effort to trick the OS into using it.
Multiple files can be used, one per disk drive
being the most useful option. But since Windows 10
hardly uses the pagefile, there might not be much
purpose in doing so.

I recommend disabling Fast Start. While the kernel image is regenerated
every once in a while (some boots will involve a full reboot and
loading of kernel and drivers), it's just not a good idea to be using a
hibernated kernel.

The other two files can be adjusted by the user. I switch off hibernation
on machines with a large amount of RAM. I adjust the pagefile for
a relatively small value, as testing shows Windows 10 doesn't really
like to use it.

Windows 10 uses a "memory compressor", but I've not found a good
article that describes the dynamics of it. If I run Windows 10
in a virtual machine, set the VM RAM to 256MB (substantially less
than the 1GB recommendation), the OS runs just fine and I can
launch Notepad. But in Task Manager, the memory compressor
runs constantly. I don't know what it's doing though, and
why compression is a good idea.

Paul

Mayayana February 17th 18 03:39 PM

Swap files number
 
"Tigerfr" wrote

| I have 2 partitions on one physical hard disk, is it necessary to have
| 2 swap files?

No. I have 10 partitions on 2 hard disks. I
have one swap file on D drive, with a set
size. The reason is to reduce space used on
C and to reduce fragmentation by swap.



Tigerfr February 17th 18 08:02 PM

Swap files number
 
Dans son message précédent, KenW a écrit :
I have 2 partitions on one physical hard disk, is it necessary to have
2 swap files?
Thanks.


Two partitions for what ?


One for windows and softwares, the other one for the datas, documents,
music, pictures...

pjp[_10_] February 17th 18 08:10 PM

Swap files number
 
In article , am says...

"Tigerfr" wrote

| I have 2 partitions on one physical hard disk, is it necessary to have
| 2 swap files?

No. I have 10 partitions on 2 hard disks. I
have one swap file on D drive, with a set
size. The reason is to reduce space used on
C and to reduce fragmentation by swap.


I've never really understood why people make multipule paritions on
single physical hard disks. I'm old enough though to remember a time
when it was easiest way to use larger hard disk given OS of the time.

I think they think it's so if something goes bad the "other" partitions
are ok. I've instead found if a parition is bad then the disk is also
bad and it's random chance what you can save under single or multipule
paritions.

For the price of hard disks now buy extras and add them to system. My
current system has three physical hard disks in it (one an ssd for OS)
and all told 10 external hard disks plus any number of 64Gb flashdrives
also. System easily has over 12Tb available. I use about 4Tb of that.
And that's not counting the networked drives (9 systems in house all
sharing "something")system can also access for storage etc.

Mayayana February 17th 18 09:13 PM

Swap files number
 
"pjp" wrote

| I've never really understood why people make multipule paritions on
| single physical hard disks.

I do it for several reason. Multi-booting. Organization.
Redundancy. Security/integrity.

Organization: I have basic storage partitions for big
stuff, another for media -- photos, graphics, videos.
I have one that's relatively small and has copies of all
frequently backep up files. So I can just copy
that partition to a DVD when I want to do a backup.
I use 2 disks that are mostly redundant, in case one
dies suddenly. And I have a row of shortcuts along the
top of the desktop, one for each partition. So it's
easy to just drop currnt work into multiple partitions
for temporary backup.

Multi-booting: I used to experiment with Linux and
in the 9x days I'd have several OSs multibooting
for testing software. These days I don't do that
so much, but I still like the idea of small OS
partitions up front.

Security: If something goes wrong with Windows
I'm not risking everything else on the disk. If C
suddenly goes bad and I have to reinstall a disk image
that doesn't affect the data.
I think of it like a tractor trailer. The OS and software
are the tractor. They only need a few GBs. And the
tractor is fundamentally different from the trailer. One
is a motor, the other just storage. The motor is far
more at risk for corruption, system failure, malware, etc.
The data partitions are the trailer. A corrupt system file
won't hurt those.

To me it's absurd to waste 100s of GBs empty space,
or at-risk space, to put a 10-60 GB OS on a 1 TB hard disk.
Disks are so big now there just isn't any reason to have an
OS on so much space. It's like having a single truck the
size of 20 trucks. Then if you break down in the desert
with perishable cargo, you lose everything. There's no need
to take such a risk. With disk image backup I can have a
new tractor (OS disk image) hooked up within an hour and
be on my way. (I've never actually had a hard disk die.
I have been in situations where a system became unbootable
and I couldn't save it.)

Once you start using that approach, it makes sense to keep
the disk images as small as possible. These days a lot of people
think they're doing disk image backup when what they're really
doing is to store a constantly-updated copy of Windows
along with all data. That's clunky, wasteful and insecure.
You can't store a copy on DVDs, so typically it's going to
be stored on a connectd disk. A disk that will be fried along
with the main disk in the event of a power surge.

You disk image shouldn't need to be updated. Disk image
backup is not about restoring the whole tractor trailer. It's
only necessary to restore the motor/tractor/OS.

I guess if you've got money to burn buying 10+ hard
disks then you can afford to waste a few TBs. :)

I don't actually have a lot of data. My first disk is
a 256 MB SSD. The second is 500 GB. I still have lots of
space on both.

| I think they think it's so if something goes bad the "other" partitions
| are ok. I've instead found if a parition is bad then the disk is also
| bad

Only if the problem is the hardware. If you have a
fatal OS problem then C drive may be kaput, but that
has no effect on data partitions.



GS February 18th 18 12:56 AM

Swap files number
 
GS a émis l'idée suivante :
Adding to Auric's reply...

If you need a larger SwapFile I think you can specify its size (reserved
space). Not sure where you'd do this though because RAM has been so cheap
for so long I'm content to leave it at the default setting.

Note that extensive use of this file slows performance considerably. Better
you increase RAM instead.(IMHO)


In fact the initial problem is not the swap file but without reason win10
restart.
I tried to find so many work around, imposing the swap file size is the
almost last one.
Someone said also to change the power supply.


Sorry.., my bad! I was thinking of Pagefile...

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

Tigerfr February 18th 18 05:03 PM

Swap files number
 
Dans son message précédent, pjp a écrit :


I've never really understood why people make multipule paritions on
single physical hard disks. I'm old enough though to remember a time


In my case it looks a more logical organization.
It's better as well when I save my OS as image to avoid a large image
and a waste of time being a non motivation to do it frequently and so
on..

[email protected] February 19th 18 08:06 PM

Swap files number
 
On Sat, 17 Feb 2018 10:39:43 -0500, "Mayayana"
wrote:

"Tigerfr" wrote

| I have 2 partitions on one physical hard disk, is it necessary to have
| 2 swap files?

No. I have 10 partitions on 2 hard disks. I
have one swap file on D drive, with a set
size. The reason is to reduce space used on
C and to reduce fragmentation by swap.


If you have run out of room on a "disc" them move it rather than
supliment it. If that disc is on the same drive then the speed should
be pretty much the same

You *could* add a cheap/fast disc and maker it your pagefile disc
alone.

Beamer Smith
Out on a limb, sawing Madly

Paul[_32_] February 19th 18 09:12 PM

Swap files number
 
wrote:
On Sat, 17 Feb 2018 10:39:43 -0500, "Mayayana"
wrote:

"Tigerfr" wrote

| I have 2 partitions on one physical hard disk, is it necessary to have
| 2 swap files?

No. I have 10 partitions on 2 hard disks. I
have one swap file on D drive, with a set
size. The reason is to reduce space used on
C and to reduce fragmentation by swap.


If you have run out of room on a "disc" them move it rather than
supliment it. If that disc is on the same drive then the speed should
be pretty much the same

You *could* add a cheap/fast disc and maker it your pagefile disc
alone.

Beamer Smith
Out on a limb, sawing Madly


But this is Windows 10.

Have you looked at how much paging it does ?

I tried to make it page, and it was pretty difficult.
It is just as likely to report an "out of memory" condition,
as to page for you.

The best I could do (so far), was to start two programs
that consume memory a bit at a time, and have them "race"
to use up all of system memory. And I could see a paging
spike by doing that. And that was it.

No grinding to a crawl like back in the WinXP days. The
"unwinding" of the pagefile on WinXP used to take forever,
because it was basically doing random 4KB reads all over
the pagefile, with no locality of reference. I've not seen that
behavior on Windows 10.

I'm not convinced that "making a project" out of the pagefile,
is a good usage of your time. It's not like the old days.

Back on WinXP, it was worth doing all these experiments.
(I even ran WinXP with the Pagefile on a RAMDisk for a couple
days, and that setup was buttery smooth. But because it had
a functional failure on the second day, I had to take it
apart again. The RAMDisk, has a very low seek time, and
a relatively high bandwidth, so you would hardly notice a
1GB program paging in or out. The setup consisted of
WinXP x32 in the lower 4GB of memory, and DataRAM RAMdisk
in the upper 4GB of memory. using a version of the RAMDisk
that supports PAE. The version you can buy today, no longer
supports that mode of operation, and I suspect Microsoft
had words with the developer about it.)

Paul

Tigerfr February 21st 18 04:01 AM

Swap files number
 
Il se trouve que GS a formulé :
GS a émis l'idée suivante :


Sorry.., my bad! I was thinking of Pagefile...


Do you mean swap file is not pagefile.sys?

GS February 21st 18 04:34 AM

Swap files number
 
Il se trouve que GS a formulé :
GS a émis l'idée suivante :


Sorry.., my bad! I was thinking of Pagefile...


Do you mean swap file is not pagefile.sys?


Back in the high$$ RAM days we used to 'inflate' the pagefile to defer apps
slowing down to do read/write to disc instead of 'in memory'. I think we used
to term it 'swapfile' because of its interaction with OS and apps.

FWIW:
Hardware is so cheap now that 'disposable' computer product is almost
acceptible. I remember my 1st Dell Precision series portable workstation cost
about $4800 back when XP arrived; my 2nd one about $3800. These were
state-of-the-art Sherman Tank versions of a laptop w/486 processors,
unbeleivable graphics qualities, loads of RAM and storage for use by
designers/engineers. Pricing that recently came in at about $2600, but I found
gaming laptops to have the same or better hardware/video/processors for less
than half the cost. Seems the OEMs know the pros will pay the Rolls Royce
price, but the gamers on Corvette prices.

But then when I was introduced to computers in college, 1 computer occupied
several rooms. So what do I know!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters