All of lore.kernel.org
 help / color / mirror / Atom feed
* gamer and memory bandwith control
@ 2016-01-24 19:55 Dmitri Seletski
  2016-01-25 12:46 ` Michal Hocko
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitri Seletski @ 2016-01-24 19:55 UTC (permalink / raw)
  To: cgroups-u79uwXL29TY76Z2rM5mHXA

Hello.

I don't usually start threads on major forum lists like this one.
Pardon me if I do something silly or take your valuable time.(i do
consider it to be valuable)

I am gamer and I was looking at opportunities to tweak performance
while I do CPU extensive tasks while playing games.

My distro is Gentoo.
When I install anything - it's compiled from source.
My current compiler settings are '-j 20', since I have 8 core AMD cpu
with 32 gigs of ram.. I tried to limit CPU usage so games that run in
parallel don't have Frames Per Second drops - it didn't help.

On Gentoo forum one of old guys suggested that I should limit memory
bandwith from being  overused by compilation process. He suggested I
look into cgroups.

I looked into it, but I don't see anything specific to limit memory
bandwidth and some other settings available there, don't seem like
something that would help me with memory bottleneck, or would it?

Any suggestions? Any suggestions outside of cgroups?

Any reply is appreciated and will be made public to a few Linux gamer
web sites.(I believe in sharing) YES, we do have those sites now! We
even have games!

Thank you in advance.
Dmitri

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gamer and memory bandwith control
  2016-01-24 19:55 gamer and memory bandwith control Dmitri Seletski
@ 2016-01-25 12:46 ` Michal Hocko
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Hocko @ 2016-01-25 12:46 UTC (permalink / raw)
  To: Dmitri Seletski; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA

On Sun 24-01-16 19:55:38, Dmitri Seletski wrote:
> Hello.
> 
> I don't usually start threads on major forum lists like this one.
> Pardon me if I do something silly or take your valuable time.(i do
> consider it to be valuable)
> 
> I am gamer and I was looking at opportunities to tweak performance
> while I do CPU extensive tasks while playing games.
> 
> My distro is Gentoo.
> When I install anything - it's compiled from source.
> My current compiler settings are '-j 20', since I have 8 core AMD cpu
> with 32 gigs of ram.. I tried to limit CPU usage so games that run in
> parallel don't have Frames Per Second drops - it didn't help.

It would be interesting to debug what is causing the FPS drop. Is the
application waiting for a memory allocation? /proc/PID/stack would tell
you. Regular (per second) snapshots of /proc/vmstat while you see the
FPS drops would be helpful to tell whether there was a disruptive memory
reclaim activity going on and a potential reason for drops.

> On Gentoo forum one of old guys suggested that I should limit memory
> bandwith from being  overused by compilation process. He suggested I
> look into cgroups.
> 
> I looked into it, but I don't see anything specific to limit memory
> bandwidth and some other settings available there, don't seem like
> something that would help me with memory bottleneck, or would it?

There is nothing like memory bandwidth control implemented via cgroups
subsystem. What you can try though is to use memory cgroup controller to
throttle application(s) (compilation in your case) to not push the whole
system under the global memory pressure and reduce the reclaim overhead
to the particular memory cgroup.
In other words start your compilation in a memory cgroup with the hard
limit set to such a value that your game (presumably the only other
significant memory consumer in the system) doesn't see the lack of
memory.
-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-25 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-24 19:55 gamer and memory bandwith control Dmitri Seletski
2016-01-25 12:46 ` Michal Hocko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.