Active Topics

 


Reply
Thread Tools
Posts: 255 | Thanked: 61 times | Joined on Feb 2010
#11
Originally Posted by Ali View Post
hi guys,
noob question please dont laugh,

what means Ohmd? what does it stand for?
Ive always assumed Ohmd was some kind of battery daemon.

::edit:: I was wrong I found this in the forum

what is cgroup and for what is used ?
ohmd daemon use cgroup to set different policy to new executed process.
you can look at this config file and everything will be more clear:
/usr/share/policy/etc/current/syspart.conf

cgroup feature (mounted in /syspart) is used to limit group of processes running in linux. in n900 divided to applications and desktop. it set different cpu-share (cpu scheduler) and limit memory per groups.
when enabled after executing new process ohmd will assign new process to specified group.
it causes overhead.
i dont need this feature, you do ?]

Source: http://talk.maemo.org/showpost.php?p=568594&postcount=1
__________________
Desktop: 2.8ghz Athlon x2 Kuma 4gb DDR2 OCZ Platinum XFX Geforce 260GTX BE

Last edited by ear0wax; 2010-11-02 at 19:07.
 

The Following User Says Thank You to ear0wax For This Useful Post:
Ali's Avatar
Posts: 248 | Thanked: 51 times | Joined on Jan 2010 @ Amsterdam
#12
is this feature installed by default in N900? and is it possible that some apps have this feature autmatically installed without knowing?
cause i think i have a high cpu problem but cannot detect from where also not from conky.
if conky shows for example if u have music on and conky shows 25-30 % of cpu usage and with xorg and mafw-dbus-wrapp it comes to 60% and with browserd almost 100% and other example is the app-manager that uses 100 % when its refreshing or updating?
i have reflashed with pr1.3 and emmc as well and through bacup app reinstalled everything even then its remains so i think i have to find out which app or widget cause that high cpu!
 
Posts: 255 | Thanked: 61 times | Joined on Feb 2010
#13
This is syspart.conf

Code:
#[init]

#[exit]

#[global]
#export-group-facts
#export-partition-facts
# partition-path /syspart/%{partition}
#iowait-notify threshold 10 40 poll 2 window 1 hook iowait_notify
# realtime-limit runtime 950 msec period 1 sec
#cgroup-options freezer, cpu, memory

########################################
# partition declarations
#

[partition system]
path /syspart

[partition desktop]
path /syspart/desktop
cpu-shares 6144
#memory-limit 50M
memory-limit 30M

[partition active_ui]
path /syspart/applications
cpu-shares 2048
#memory-limit 120M
memory-limit 150M

[partition standby_ui]
path /syspart/applications/standby
memory-limit 115M
#memory-limit 85M

[partition launcher]
path /syspart/applications/launcher

[partition background]
path /syspart/applications/standby/background
#memory-limit 20M
memory-limit 30M


########################################
# group declarations
#

[group system]
description 'Essential system processes'
partition system
#export-fact

[group sysutils]
description 'System utilities'
partition system

[group telephony]
description 'Telephony signaling and related processes'
partition system

[group callui]
description 'Telephony user interface'
partition system

[group desktop]
description 'Desktop basic applications'
partition desktop

[group home]
description 'Desktop applets and applications'
partition standby_ui

[group camera]
description 'Camera and related applications'
partition standby_ui

[group media]
description 'Media playback'
partition standby_ui

[group mediasrc]
description 'Media sources'
partition system

[group mediarend]
description 'Media renderers'
partition system

[group browser]
description 'Web browsing'
partition standby_ui

[group messaging]
description 'SMS and instant messaging'
partition standby_ui

[group mail]
description 'E-Mail'
partition standby_ui

[group mapping]
description 'Mapping and navigation applications'
partition standby_ui

[group gaming]
description 'Games'
partition standby_ui

[group appmanager]
description 'Application manager UI'
partition standby_ui

[group accessories]
description 'Accessories'
partition standby_ui

[group tracker]
description 'Content tracking and indexing'
partition background

[group download]
description 'Download background daemons'
partition background

[group support]
description 'Supporting background daemons'
partition background

[group contacts]
description 'Address book'
partition standby_ui

[group apputils]
description 'Application utilities'
partition standby_ui

[group trusted]
description 'Trusted extra applications'
partition standby_ui

[group default]
description 'Other classified processes'
partition background


########################################
# process classification rules
#

[rule /usr/bin/mafw-dbus-wrapper]
arg1 == 'mafw-tracker-source' => group tracker
arg1 == 'mafw-gst-renderer'   => group mediasrc
group media

[rule /usr/sbin/omap3camd]
arg2 == /dev/video0 => group camera
arg2 == /dev/video1 => group telephony
group camera

[rule /usr/sbin/browserd]
arg4 == 'browserui'            => group browser
arg4 == 'RTComMessagingServer' => group messaging
group browser

[rule /usr/bin/maemo-launcher]
arg0 != /usr/bin/maemo-launcher                         => classify-by-argv0
arg0 == /usr/bin/maemo-launcher && reclassify-count < 6 => reclassify-after 1500
arg0 == /usr/bin/maemo-launcher                         => group apputils
group trusted

[rule /usr/bin/maemo-invoker]
arg0 != /usr/bin/maemo-invoker                          => classify-by-argv0
arg0 == /usr/bin/maemo-invoker && reclassify-count < 6  => reclassify-after 1500
arg0 == /usr/bin/maemo-invoker                          => group apputils
group default

[rule *]
type == kernel => group system
group default

#####################################
# simple classification rules
#

[classify accessories]
/usr/bin/Calendar
/usr/bin/worldclock
/usr/bin/osso_calculator
/usr/bin/osso-xterm

[classify appmanager]
/usr/bin/hildon-application-manager

[classify browser]
/usr/bin/browser

[classify callui]
/usr/bin/rtcom-call-ui

[classify camera]
/usr/bin/camera-ui
/usr/bin/image-viewer

[classify contacts]
/usr/bin/osso-addressbook

[classify desktop]
/usr/bin/hildon-desktop
/usr/bin/hildon-status-menu
/usr/bin/hildon-input-method
/usr/bin/systemui
/usr/bin/matchbox-window-manager
/usr/bin/osso-connectivity-ui-conndlgs

[classify download]
/usr/libexec/apt-worker
/usr/sbin/softupd

[classify gaming]
/usr/bin/mahjong_startup
/usr/bin/Mahjong
/usr/bin/chess_startup
/usr/bin/maemoblocks_startup
/usr/bin/maemoblocks
/usr/bin/lmarbles_startup
/usr/bin/osso_lmarbles
/usr/bin/chessui
/usr/games/gnuchess

[classify home]
/usr/bin/clipboard-manager
/usr/bin/hildon-home
/usr/bin/osso-abook-home-applet

[classify mail]
/usr/bin/modest

[classify mapping]
/usr/bin/nokia-maps
/usr/lib/nokiamaps-navigation-provider/nm-nav-provider
/usr/bin/location-proxy
/usr/libexec/location-daemon

[classify media]
/usr/bin/mediaplayer
/usr/bin/mafw-playlist-daemon

[classify mediarend]
/usr/bin/pulseaudio
/usr/bin/Xorg

[classify mediasrc]
/usr/bin/tonegend
/usr/bin/hildon-sv-notification-daemon
/usr/lib/skyhost/voicehost
/usr/lib/telepathy/telepathy-stream-engine

[classify messaging]
/usr/sbin/sms-manager
/usr/bin/rtcom-messaging-ui

[classify support]
/usr/libexec/hildon-thumbnailerd
/usr/bin/intellisyncd
/usr/lib/obex/obexd
/usr/bin/syncd

[classify system]
/usr/sbin/icd2
/usr/sbin/alsaped
/usr/sbin/ohmd
/usr/sbin/hald
/usr/lib/hal/hald-addon-omap-gpio
/usr/lib/hal/hald-addon-generic-backlight
/usr/lib/hal/hald-addon-input
/usr/lib/hal/hald-addon-mmc
/usr/lib/hal/hald-addon-als
/usr/lib/hal/hald-addon-bme
/usr/lib/hal/hald-addon-cpufreq
/usr/lib/hal/hald-addon-usb-cable
/usr/sbin/dsp-manager
/usr/lib/sapwood/sapwood-server
/usr/bin/hildon-welcome
/usr/bin/clockd
/usr/bin/lscgrp
/sbin/init
/sbin/udevd
/usr/sbin/bme_RX-51
/sbin/syslogd
/sbin/klogd
/bin/busybox
/usr/sbin/sscd
/usr/sbin/sysinfod
/usr/sbin/wappushd
/usr/lib/hal/hald-runner
/usr/lib/gconf2/gconfd-2
/usr/sbin/cellmo-watch
/usr/bin/signond
/usr/sbin/bluetoothd
/usr/bin/dbus-launch
/usr/bin/maemo-xinput-sounds
/usr/bin/ohm-session-agent
/usr/bin/profiled
/usr/sbin/alarmd
/usr/lib/gvfs/gvfs-hal-volume-monitor
/usr/lib/gvfs/gvfsd
/usr/bin/iphbd
/usr/libexec/gnome-vfs-daemon
/usr/lib/evolution-data-server/e-addressbook-factory
/usr/sbin/dnsmasq
/usr/sbin/wlancond
/usr/bin/eapd
/usr/bin/app-detect
/usr/sbin/hulda
/usr/sbin/temp-reaper
/usr/sbin/maesync_controller
/usr/sbin/ke-recv
/usr/bin/crash_reporter_daemon
/sbin/udhcpc
/usr/bin/pnatd
/usr/sbin/sshd

[classify sysutils]
/sbin/dsme
/sbin/mce
/usr/bin/dbus-daemon

[classify telephony]
/usr/sbin/csd
/usr/bin/mission-control
/usr/lib/telepathy/telepathy-ring
/usr/lib/telepathy/telepathy-gabble
/usr/lib/telepathy/telepathy-spirit
/usr/lib/skyhost/skyhost
/usr/lib/telepathy/telepathy-sofiasip
/usr/bin/ringtoned

[classify tracker]
/usr/lib/tracker/trackerd
/usr/lib/tracker/tracker-indexer
As you can see it Creates management groups and classified individual exuctables for the groups.
__________________
Desktop: 2.8ghz Athlon x2 Kuma 4gb DDR2 OCZ Platinum XFX Geforce 260GTX BE
 
Ali's Avatar
Posts: 248 | Thanked: 51 times | Joined on Jan 2010 @ Amsterdam
#14
what about my reply?no answers?
 
Posts: 255 | Thanked: 61 times | Joined on Feb 2010
#15
Originally Posted by Ali View Post
what about my reply?no answers?
Theres all kinds of answers there, but basically no, you would need a custom kernel to disable ohmd and cgroups.

Also, Any process will use 100% cpu if its busy enough, the application manager is diskIO crazy so it lags.
__________________
Desktop: 2.8ghz Athlon x2 Kuma 4gb DDR2 OCZ Platinum XFX Geforce 260GTX BE

Last edited by ear0wax; 2010-11-02 at 20:18.
 
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#16
I'm curious about this deamon as well. My Batter-eye quit running after 1.3. How are you getting yours to work?
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#17
Originally Posted by les_garten View Post
I'm curious about this deamon as well. My Batter-eye quit running after 1.3. How are you getting yours to work?
Try Battery Graph, it's more comprehensive than Battery Eye.
 
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#18
Originally Posted by ear0wax View Post
Theres all kinds of answers there, but basically no, you would need a custom kernel to disable ohmd and cgroups.
By removing access to /usr/lib/ohm/libohm_cgroups.so, you effectively disable the cgroups setup. However, removing cgroups will indeed require a custom kernel.

I've renamed libohm_cgroups.so to disable the cgroups because the BFS scheduler I use doesn't support cgroups anyway. Disabling cgroups allows fair distribution of the available resources (which results in both positive and negative consequences, judge by yourself wheter you want cgroups enabled or not).
 
Posts: 5 | Thanked: 1 time | Joined on Nov 2010
#19
So I'm currently experiencing similar problems. I tried removing flashlight-applet and flashlight-extra, to no prevail. Removing flashlight-extra seemed to work until i rebooted.

I did not see this before PR 1.3 at least, but not sure if it is related.
 
Posts: 17 | Thanked: 4 times | Joined on Jan 2010 @ Finland
#20
Originally Posted by Aydan View Post
I finally decided to reflash and the problem is gone.
After one whole day of uptime ohmd only used 12 seconds of cpu.

I'd still be interested to know what went wrong.

Regards
Aydan
I'd be interested in how you get how many seconds of of cpu an app uses?
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:12.