Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Ohmd eating Battery

    Reply
    Page 2 of 3 | Prev |   1   2   3   | Next
    ear0wax | # 11 | 2010-11-02, 18:50 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by ear0wax; 2010-11-02 at 19:07.
    The Following User Says Thank You to ear0wax For This Useful Post:
    v13

     
    Ali | # 12 | 2010-11-02, 19:22 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ear0wax | # 13 | 2010-11-02, 19:41 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Ali | # 14 | 2010-11-02, 19:58 | Report

    what about my reply?no answers?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ear0wax | # 15 | 2010-11-02, 20:15 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by ear0wax; 2010-11-02 at 20:18.

     
    les_garten | # 16 | 2010-11-02, 20:20 | Report

    I'm curious about this deamon as well. My Batter-eye quit running after 1.3. How are you getting yours to work?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kureyon | # 17 | 2010-11-03, 08:20 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    iDont | # 18 | 2010-11-03, 11:26 | Report

    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).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    xantoz | # 19 | 2010-11-05, 09:44 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    peppe78 | # 20 | 2010-11-05, 09:58 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 3 | Prev |   1   2   3   | Next
vBulletin® Version 3.8.8
Normal Logout