platform/core/system/resourced.git
9 years agoAdded latest resourced code to public repo 88/33788/2
Prajwal A N [Thu, 15 Jan 2015 01:59:23 +0000 (10:59 +0900)]
Added latest resourced code to public repo

Change-Id: Ideb61e5414c7ce5d6635b8d624fda7ac12127d52
Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
10 years agoswap: change the return value to ERROR_NONE in case that swap is off 79/22179/1
Taeyoung Kim [Thu, 29 May 2014 13:26:20 +0000 (22:26 +0900)]
swap: change the return value to ERROR_NONE in case that swap is off

- When swap is off, the swap module cannot be found.
  This is normal operation, and the return value
  should be changed from ERROR_FAIL to ERROR_NONE.

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: Id8490ce0669408519b32373e057330b27a237617

10 years agoservice: add memory limit option 74/22174/1
Taeyoung Kim [Thu, 29 May 2014 12:58:03 +0000 (21:58 +0900)]
service: add memory limit option

- Memory usage of resourced is under 1MB currently.
- If memory leak or other problems occur, resourced
  will be re-launched. The limit of memory usage is 10MB.

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I75c38b3f93856a292163add7655251332d10dbfb

10 years agoSecond part of datausage module. 66/20766/3
Przemyslaw Kedzierski [Mon, 12 May 2014 12:31:28 +0000 (14:31 +0200)]
Second part of datausage module.

The datausage module is used for network traffic statistics.
This commit adds common part of code of datausage module,
a skeleton code for initialization, finalization and control.

Change-Id: Ifef33c6752577888fde6a14a5b588846d21afff1
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd part of datausage code. 28/20628/1
Przemyslaw Kedzierski [Fri, 9 May 2014 15:23:35 +0000 (17:23 +0200)]
Add part of datausage code.

    The datausage module is used for network traffic statistics.
    This commit adds parts of code of datausage module,
    used in resourced module.

Change-Id: Idc695eeaf0f1e50dbdc83a9b7274f1b7d7fb950f
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agomemory: add swap support 00/18600/1
Chanho Park [Wed, 26 Mar 2014 08:14:12 +0000 (17:14 +0900)]
memory: add swap support

This patch introduces swap module which is based on memory cgroup
swap extension. This also enables support of flash(eMMC) swap file.
Due to limitation of nand flash write endurance, we limited a
writeback size to 512MB per day.
When we need more memory from requests, the memcg reclaims the memory
from swap cgroup. The resourced can choose the victims by oomadj value.

This patch also includes clean-up of lowmem-process source files
because we don't need them anymore.

Change-Id: I9c09bc5329a5d3e619952c249be3d3712b15c609
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
10 years agoScripts for unit tests. 14/17214/1
Przemyslaw Kedzierski [Wed, 5 Mar 2014 11:15:42 +0000 (12:15 +0100)]
Scripts for unit tests.

Scripts needed for unit testing API functions.

Change-Id: I0bdd27ca6edb215d58fe05093b9a955685ec6813
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd utils - network part. 85/17085/1
Przemyslaw Kedzierski [Mon, 3 Mar 2014 15:54:52 +0000 (16:54 +0100)]
Add utils - network part.

Continuation of work from previous commit.

Change-Id: I302213fc6d901f89aac6dc4ff09d149a78e28a5d
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd utils, tools and tests. 84/17084/1
Przemyslaw Kedzierski [Mon, 3 Mar 2014 15:14:55 +0000 (16:14 +0100)]
Add utils, tools and tests.

These tools are for testing core functionalities used by packet and system
like small in-file databases, hash tables, cgroups, network udp traffic,
and getting various system information about processes and network.

Change-Id: I775706b19d3b1c829d7b457b065562da7f33ac92
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoCode cleanup. 71/17071/1
Przemyslaw Kedzierski [Mon, 3 Mar 2014 12:30:14 +0000 (13:30 +0100)]
Code cleanup.

Some cleanup of code, spec file and cmake files.

Change-Id: I3cd6bb975617e23cb4bcf39468cfc950ad7cc996
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd cpu module. 90/16690/1
Przemyslaw Kedzierski [Mon, 10 Feb 2014 10:19:00 +0000 (11:19 +0100)]
Add cpu module.

The cpu module is used for moving processes and tasks
between cgroups.

Change-Id: I7fd296c41aac74951d62d77c50bd343ebc43b986
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd memps module. 59/16659/1
Przemyslaw Kedzierski [Mon, 10 Feb 2014 10:03:21 +0000 (11:03 +0100)]
Add memps module.

The memps is a tool that shows memory usage,
total and by each process.

Change-Id: I6d80042c9ba36ea8921832593c04c647fcdad8f1
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd network module. 57/16657/1
Przemyslaw Kedzierski [Mon, 10 Feb 2014 10:00:50 +0000 (11:00 +0100)]
Add network module.

Add network module and a stub for data_usage module.

The network module manages options, limits and quotas for
network interfaces.

Change-Id: I3e9a7a481ddfb2463d5ee8b429198e31ebc94f99
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd powertop-wrapper module. 25/16525/1
Przemyslaw Kedzierski [Fri, 7 Feb 2014 15:42:35 +0000 (16:42 +0100)]
Add powertop-wrapper module.

Some corrections to cmake and spec files.

The powertop-wrapper module runs powertop tool,
gathers its results and forms in reports.

Change-Id: Ib366442c38334b6e2d996c9c695f9bde38a2f9ec
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoUpdated memory module. 92/16392/1
Przemyslaw Kedzierski [Fri, 7 Feb 2014 15:34:49 +0000 (16:34 +0100)]
Updated memory module.

The memory module implements, runs and controls
oom_kill'er, and its dbus interface.

Change-Id: Ib28de58a89fdaddf2a8042399f1b422561c9a4b7
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoUpdate proc-stat module. 48/16348/2
Przemyslaw Kedzierski [Fri, 7 Feb 2014 15:32:31 +0000 (16:32 +0100)]
Update proc-stat module.

The proc-stat module provides many information
about system and processes from /proc filesystem,
and also information about windows from Xwindow system.

Change-Id: I1ec5987915c8bfe8a93ee539240284d13d3fe623
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoUpdate the main part of resourced module. 65/16265/1
Przemyslaw Kedzierski [Wed, 12 Feb 2014 09:43:21 +0000 (10:43 +0100)]
Update the main part of resourced module.

The resource daemon contains main functinalities of program,
parses command line options, manages modules, initialises
dbus interfaces.

Change-Id: I54a3cf9efcefda382167e97c366fb532eba3f97d
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
10 years agoAdd Process handler 11/12511/1
Taeyoung Kim [Mon, 18 Nov 2013 01:36:30 +0000 (10:36 +0900)]
Add Process handler

- Process Handler manages the oom_score_adj value.
- Appcore changes processes to Foreground/Background
  and deviced changes processes to Active/Inactive by resourced apis
- oom_score-adj
  = Root daemons: 0
  = Process init value:  100
  = Foreground Locked:   150 (ex. Multimedia apps, ...)
  = Foreground Unlocked: 200
  = Background Locked:   250 (ex. Background Music player, ...)
  = Background Unlocked: 300
  = Maximum value: 990

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I6ca0e3524dc8132aaa2a9bac6a2a6ba8d91bb148

10 years agoAdd Memory control (OOM handler) 07/12507/2
Taeyoung Kim [Mon, 18 Nov 2013 01:02:40 +0000 (10:02 +0900)]
Add Memory control (OOM handler)

- Memory cgroup is used to check OOM status and to kill processes to secure memory
  = Memory cgroup notices to resourced when remaining memory is on low pressure state
    and medium pressure state. When low pressure, resourced send signal to apps
    to use malloc-trim. And when medium pressure, resourced kills processes.
  = The victims sre decided by oom_score_adj value.
  = OOM killer is disabled
  = ex) For 1GB memory, the memory is on low pressure state when the remaining memory is under 200MB.
        And the memory is on medium pressure state when the remaining memory is under 160MB.

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I21d84a2c61680a43b032bad21e77816da85c4ad2

10 years agoInitial commit for Resourced 27/12427/3
Taeyoung Kim [Fri, 15 Nov 2013 04:56:28 +0000 (13:56 +0900)]
Initial commit for Resourced

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I9c06df974efabf248bc78e0292f33eb0cd193fc1

10 years agoInitial empty repository master submit/tizen/20190131.142734
Sehong Na [Thu, 22 Aug 2013 05:18:30 +0000 (22:18 -0700)]
Initial empty repository