why is swap on the server being used up

Discussion Of All Legal Topics Anything Goes, No Personal Information or Attacks.
Trading, Buying, Selling Links, Traffic, Domains, Websites Go Here.
Looking for Work or Hiring Employees or Independent Contractors Post Here.
Sponsor Announcement & News
Post Reply
User avatar
AlexO
Posts: 3316
Joined: February 10th, 2018, 5:37 pm
Title: I like Celebrities

why is swap on the server being used up

#1

Post by AlexO » June 22nd, 2021, 8:16 am

I'm trying to understand my server , if the memory is only 34% used why is the server using 8% swap?
I thought when the memory was full the server goes onto to use swap, or am I mistaken?
Give me celebrity porn :twisted:

User avatar
Jag
Posts: 4289
Joined: February 15th, 2018, 9:51 am
Title: From Malta with love
Referrals: 1

#2

Post by Jag » June 23rd, 2021, 7:14 am

what is the server load at that time?
From Malta with love and sunshine

pornmafia
Posts: 928
Joined: March 4th, 2018, 12:14 pm

#3

Post by pornmafia » June 24th, 2021, 6:20 am

It is quite normal for your server top to show 'swap' in use nothing there to worry over.




Franksdomains
Posts: 421
Joined: March 11th, 2018, 6:36 pm

#4

Post by Franksdomains » June 27th, 2021, 11:31 am

pornmafia wrote:
June 24th, 2021, 6:20 am
It is quite normal for your server top to show 'swap' in use nothing there to worry over.
that is how it is




User avatar
TheButcher
Posts: 12448
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#5

Post by TheButcher » June 29th, 2021, 8:15 am

AlexO wrote:
June 22nd, 2021, 8:16 am
I'm trying to understand my server , if the memory is only 34% used why is the server using 8% swap?
I thought when the memory was full the server goes onto to use swap, or am I mistaken?


Those numbers are very acceptable you have nothing to worry about

Dallastim
Posts: 278
Joined: April 18th, 2018, 3:04 pm

#6

Post by Dallastim » June 30th, 2021, 10:11 am

So what else is swap used for




User avatar
bbwlover
Posts: 893
Joined: March 5th, 2018, 6:23 pm

#7

Post by bbwlover » June 30th, 2021, 8:29 pm

SWAP is hard disk space used when RAM is not enough, but it is slower. So why SWAP is used when RAM is not 100% in use is a mystery.




Mitch
Posts: 359
Joined: March 26th, 2018, 11:55 am

#8

Post by Mitch » July 1st, 2021, 1:01 pm

How much ram do you have




CTE
Posts: 575
Joined: March 13th, 2018, 3:31 pm

#9

Post by CTE » July 3rd, 2021, 7:40 pm

bbwlover wrote:
June 30th, 2021, 8:29 pm
SWAP is hard disk space used when RAM is not enough, but it is slower. So why SWAP is used when RAM is not 100% in use is a mystery.
therefore if you see swap being used you are short on ram, makes sense.




deviantz
Posts: 579
Joined: March 11th, 2018, 1:47 pm

#10

Post by deviantz » July 7th, 2021, 1:58 pm

Just looked and my memory is 46% in use and 21% swap too. So how is swap only used when your memory is full?




Colmike7
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#11

Post by Colmike7 » July 7th, 2021, 2:05 pm

Sometimes it can still use swap even if memory isn't being used up. It takes as much time to get data out of swap as it does to get it in there, so sometimes the kernel will just keep it. It's not just if memory > x% then use swap linearly. And sometimes the kernel just uses swap to prevent out of memory errors and other things like using too much cache.




born2bewild
Posts: 1138
Joined: May 22nd, 2018, 6:47 pm
Title: work hard play hard

#12

Post by born2bewild » July 8th, 2021, 12:56 pm

If your load is 1 or under you have no reason to worry about swap




DeSexGuide
Posts: 1322
Joined: May 4th, 2018, 6:51 pm

#13

Post by DeSexGuide » July 12th, 2021, 2:08 pm

Colmike7 wrote:
July 7th, 2021, 2:05 pm
Sometimes it can still use swap even if memory isn't being used up. It takes as much time to get data out of swap as it does to get it in there, so sometimes the kernel will just keep it. It's not just if memory > x% then use swap linearly. And sometimes the kernel just uses swap to prevent out of memory errors and other things like using too much cache.
winning opinion / answer I agree with what he posted




workman
Posts: 458
Joined: March 8th, 2018, 11:07 am

#14

Post by workman » July 13th, 2021, 1:19 pm

Best thing is add ram it's cheap so you are not using up disk function when ram can do it




why is swap on the server being used up

Post Reply